摘要: 1.Android中控件的visible属性:visible、invisible、gone visible:设置控件可见 invisible:设置控件不可见 gone:设置控件隐藏 2017-03-06 21:52:23 阅读全文
posted @ 2017-03-06 21:57 人生不酱油 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 对于二叉树,有前序、中序、后序三种遍历方法,由于树的定义本身就是递归定义的,故采用递归方法实现三种遍历简洁易懂。若采用非递归访问,则需要使用栈来模拟递归的实现。三种遍历的非递归算法中,前序和后序较容易,而后序相对较难。前序遍历递归非递归树的遍历中序遍历递归非递归后序遍历递归非递归层次遍历计算树高... 阅读全文
posted @ 2015-06-18 17:22 人生不酱油 阅读(436) 评论(0) 推荐(0) 编辑
摘要: No.223 Rectangle AreaFind the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top r... 阅读全文
posted @ 2015-06-12 11:07 人生不酱油 阅读(175) 评论(0) 推荐(0) 编辑
摘要: No.66 Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significa... 阅读全文
posted @ 2015-06-11 21:27 人生不酱油 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted Array||Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=... 阅读全文
posted @ 2015-06-11 17:12 人生不酱油 阅读(163) 评论(0) 推荐(0) 编辑
摘要: No.27 Remove ElementGiven an array and a value, remove all instances of that value in place and return the new length.The order of elements can be cha... 阅读全文
posted @ 2015-06-11 16:38 人生不酱油 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new lengt... 阅读全文
posted @ 2015-06-11 16:16 人生不酱油 阅读(106) 评论(0) 推荐(0) 编辑
摘要: No.9 Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integ... 阅读全文
posted @ 2015-06-11 15:47 人生不酱油 阅读(112) 评论(0) 推荐(0) 编辑
摘要: No.219 Contains Duplicate ||Given an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such th... 阅读全文
posted @ 2015-06-11 15:16 人生不酱油 阅读(142) 评论(0) 推荐(0) 编辑
摘要: No.205 Ismorphic StringsGiven two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to ge... 阅读全文
posted @ 2015-06-10 16:06 人生不酱油 阅读(139) 评论(0) 推荐(0) 编辑