/how-to-solve-tree-structure

Kinds of tree structure solvers in real scene, wish to save your time.

Primary LanguageTypeScriptMIT LicenseMIT

how-to-solve-tree-structure

Kinds of tree structure solve methods in real scene, wish to save your time.

在工作中经常会遇到菜单、目录、城市等树形结构,如果手边没有一些解决这些问题的模板代码,那么重头开始来设计这些算法会浪费很多时间,如果能有一些参考代码,那么就能在一定程度上加快解决问题的速度。

所有方法都会存放在 mthods 目录中。

内容

1、结构转换:把结构A转成结构B

2、剪枝:在树中找到指定标识所在的那一个分支