摘要: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. 字符串相乘。 解决: 1、 阅读全文
posted @ 2018-05-08 18:00 Zzz...y 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1、递归遍历 把3~5行按照访问顺序交换一下位置,就能实现前序遍历、中序遍历和后序遍历。 2、非递归遍历 非递归遍历可以用栈实现。 a. 前序遍历(144. Binary Tree Preorder Traversal) 前序遍历节点访问次序是 根-左-右 所以对于弹出的每一个节点,进栈顺序是先右孩 阅读全文
posted @ 2018-05-08 13:34 Zzz...y 阅读(181) 评论(0) 推荐(0) 编辑