algo icon indicating copy to clipboard operation
algo copied to clipboard

数据结构与算法 by golang

Results 3 algo issues
Sort by recently updated
recently updated
newest added

Reserve linked list not implementation `func (l *SingleLinked) Reserve(p *SingleNode) *SingleNode { return nil }`

https://github.com/yezihack/algo/blob/9e46547089d058677853513ae04e32a5fb5c55cf/tree/binary_tree.go#L47 比如传入“#B#A#C#”,中序遍历生成树的时候,首字符是“#”,直接return,树不会生成

for i := 0; i < len(arr); i ++ { ..... } ---> for i := 0; i < len(arr) - 1; i ++ { ..... }