![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试题
bin1220
这个作者很懒,什么都没留下…
展开
-
面试题01
1.把二元查找树转变成排序的双向链表 题目:输入一棵二元查找树,将该二元查找树转换成一个排序的双向链表。要求不能创建任何新的结点,只调整指针的指向。 10 / \ 6 14 / \ / \4 8 12 16 转换成双向链表4=6=8=10=12=14=16。 首先我们定义的二元查找树 节点的数据结构如下: struct BSTree转载 2012-03-05 14:12:21 · 4285 阅读 · 0 评论 -
java中如何将每个单词的字母反转,就是将"To be or not to be "变成“oT eb ro ton ot eb”
public static void main(String[] args){ String s = "To be or not to be "; String[] ss = s.split(" "); StringBuilder sb = new StringBuilder(); for (String temp : ss) { StringBuilder sbtmp原创 2012-03-05 14:12:36 · 3220 阅读 · 1 评论