上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: 平均情况下,冒泡排序的比较次数近似是插入排序的两倍 与 选择排序相同 移动次数 和插入相同 是选择的n倍 阅读全文
posted @ 2017-03-14 08:24 Nicolellu 阅读(149) 评论(0) 推荐(0)
摘要: Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in 阅读全文
posted @ 2017-03-13 21:53 Nicolellu 阅读(127) 评论(0) 推荐(0)
摘要: keyword:快慢引用 比如: fast:每次走两步 slow:每次走一步 如果链表有环,这俩货一定会相遇 【至于为什么】 跑步时候快的慢的一定会扣圈的啊 假设Faster确实把Slower超了而且他俩还没相遇(类似Faster一下迈了2步,Slower一下迈了一步,Faster超了Slower, 阅读全文
posted @ 2017-03-13 21:44 Nicolellu 阅读(88) 评论(0) 推荐(0)
摘要: 先打个包的链接http://jingyan.baidu.com/article/363872ec2239336e4ba16fdd.html 调试版和正式版http://jingyan.baidu.com/article/25648fc19932849191fd0001.html MGJ起司爸爸了。。 阅读全文
posted @ 2017-03-13 20:56 Nicolellu 阅读(147) 评论(0) 推荐(0)
摘要: 如果想让某个view紧贴屏幕右侧,最好使用relativelayout 相对布局常用属性: 子类控件相对子类控件:值是另外一个控件的id android:layout_above 位于给定DI控件之上android:layout_below 位于给定DI控件之下 android:layout_toL 阅读全文
posted @ 2017-03-13 20:56 Nicolellu 阅读(129) 评论(0) 推荐(0)
摘要: 几个容易忽视的点儿,这里记一下 删除结点中,删除特定元素值结点及删除尾结点 都需要通过循环找到!注意!没有循环体,找到即可!! 一、删掉info=el的结点【注意链表为空!和只有一个结点!!】 删除头结点【注意链表只有一个结点】 删除尾结点【还是注意链表只有一个结点】 二、链表添加新结点 链表头加一 阅读全文
posted @ 2017-03-12 10:42 Nicolellu 阅读(416) 评论(0) 推荐(0)
摘要: 几个总忘的点儿: 结点的深度:一个结点向上移动到其父节点——是一步,再移动到父结点的父结点——是两步,移动到了根结点——结点的深度 树的深度:所有叶子结点的最大深度 数组存储完全二叉树:某个Node在数组中的位置为[i],其父结点则是在[(i-1)/2],其两个孩子则是[2i+1],[2i+2] 树 阅读全文
posted @ 2017-03-11 20:54 Nicolellu 阅读(248) 评论(0) 推荐(0)
摘要: 虽然以前写过,但是不幸的是忘记了,一点思路都没了, 看到代码也还是很蒙,还好画了画图,一下就明白过来啦,第二天也能顺利的写出来没有再忘记嘿嘿 //还有就是!绝对绝对!不要访问null引用的实例变量!!会异常啊!! //null表示空引用,特殊的java常量,任何引用变量在韦银勇其他对象实例时,都可以 阅读全文
posted @ 2017-03-11 19:15 Nicolellu 阅读(134) 评论(0) 推荐(0)
摘要: String[] split(String regex,int limit) Splits this string around matches of the given regular expression. split 方法将一个字符串分割为子字符串,然后将结果作为字符串数组返回。stringO 阅读全文
posted @ 2017-03-11 11:00 Nicolellu 阅读(91) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页