上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 1.仅对本类可见-private2.对所有类可见 -public3.对本包和所有子类可见 -protected4.对本包可见-default(不需要修饰符) PrivateDefaultProtectedPublic同一个类1111同一个包的子类0111同一个包的非子类0111不同包的子类0011不... 阅读全文
posted @ 2017-11-07 19:57 link98 阅读(599) 评论(0) 推荐(0)
摘要: 本文转自http://www.jb51.net/article/41430.htm是我看过的介绍这些关键字比较好的文章了,所以分享一下—————————————————————————————————————————————————————————————————————————————static... 阅读全文
posted @ 2017-11-07 19:16 link98 阅读(341) 评论(0) 推荐(0)
摘要: 538. Convert BST to Greater TreeGiven a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to t... 阅读全文
posted @ 2017-11-07 11:44 link98 阅读(111) 评论(0) 推荐(0)
摘要: 606. Construct String from Binary TreeYou need to construct a string consists of parenthesis and integers from a binary tree with the preorder travers... 阅读全文
posted @ 2017-11-06 17:19 link98 阅读(99) 评论(0) 推荐(0)
摘要: 283. Move ZeroesGiven an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.F... 阅读全文
posted @ 2017-11-05 19:56 link98 阅读(103) 评论(0) 推荐(0)
摘要: 653. Two Sum IV - Input is a BSTGiven a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum... 阅读全文
posted @ 2017-11-04 21:41 link98 阅读(130) 评论(0) 推荐(0)
摘要: 389. Find the DifferencGiven two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then a... 阅读全文
posted @ 2017-11-03 11:23 link98 阅读(127) 评论(0) 推荐(0)
摘要: 448. Find All Numbers Disappeared in an ArrayGiven an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others ... 阅读全文
posted @ 2017-11-02 15:05 link98 阅读(121) 评论(0) 推荐(0)
摘要: 696. Count Binary SubstringsGive a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all t... 阅读全文
posted @ 2017-11-01 18:03 link98 阅读(159) 评论(0) 推荐(0)
摘要: 226. Invert Binary TreeInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This prob... 阅读全文
posted @ 2017-10-28 22:20 link98 阅读(138) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页