algorithms/fds/mistakes #32
Replies: 3 comments 8 replies
-
Chap 3 Q1 我认为是因为可以另外加一个count纪录循环队列中的元素个数,这样rear和front只要留一个即可 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Chap4 Q4,可以通过Firstchild-Nextsibling把树转化为二叉树,而二叉树是可以用一维数组表示的,把空节点空出 |
Beta Was this translation helpful? Give feedback.
5 replies
-
Chap 3Q1,应该是说只需要一个尾巴指针指向最后一个节点,而这个节点指向dummy节点,就可以完全利用这个尾巴指针常数时间enqueue(插入,尾巴跟上)和dequeue(把dummy前的节点移除)。 Chap 9 Q4:题目主要指的是在每个递归结束前(也就是大括号前面的那一条语句)打印出数值,就像是后序遍历一样,所以是倒着的 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
algorithms/fds/mistakes
NoughtQ的笔记本
https://note.noughtq.top/algorithms/fds/mistakes
Beta Was this translation helpful? Give feedback.
All reactions