数据结构的了解
小王NG
什么都不想说。。。
展开
-
前序,中序,后序 遍历的记录一二
有一段时间没有看数据结构了,感觉很多都忘了,(骨子里貌似不怎么记得住啊,233333).(前中后根,可以把根深深记住,那么左右子树是固定的,而根就是先 中 后)前序(先根)遍历:①访问根结点 ②遍历左子树 ③遍历右子树 (根 左 右) ④循环类似继续搞(访问根结点:A --- 遍历左子树 --- 访问根结点:B --- 继续 --- D --- E ---原创 2016-09-05 08:35:28 · 320 阅读 · 0 评论 -
addTwoNumbers --- 单纯研究一下
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link原创 2016-09-06 10:20:21 · 242 阅读 · 0 评论