题解 1592: 蓝桥杯算法训练VIP-FBI树

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

蓝桥杯 FBI树 DFS

#FBI树DFS(C++)描述##1.思想也不必构建二叉树,在字符串上搜索即可##2.完成代码(AC)```cpp////Createdbyliuluon2020/2/29.//蓝桥杯题库算法训练1592FBI树//#include#includeusingnamespacestd;constintm

python-FBI树(dfs)

摘要:解题思路:注意事项:参考代码:def dfs(s):       global R              R.append(s)              if 

1592: 蓝桥杯算法训练VIP-FBI树

[https://www.dotcpp.com/oj/problem1592.html](https://www.dotcpp.com/oj/problem1592.html)-思路设当前串为S,则画图模拟后有:-若S的字符和S.value==S.length;节点Node=I-若S的字符和S.val