- 博客(4)
- 资源 (4)
- 收藏
- 关注
原创 LeetCode9_Palindrome Number
My answer /** * case1: x is negative, x is definitely not palindrome * case2: x is between 0 and 9, x is palindrome.included by case3 * case3: x has more than 1 digit. * A
2015-01-23 02:40:40 879
原创 LeetCode3_Longest Substring Without Repeating Characters
My Answer1. 第三次提交public int lengthOfLongestSubstring(String s) { if (s == null || s.length() == 0) { return 0; } int start = 0; int maxLength = 0;
2015-01-07 16:06:10 660
原创 LeetCode1_Two Sum
My answer第三遍提交 /** * running time : O(n) */ public int[] twoSum(int[] numbers, int target) { int[] result = new int[2]; HashMap map = new HashMap();
2015-01-06 07:15:06 1654
原创 LeetCode2_Add Two Numbers
My answer1. 第二遍提交public ListNode addTwoNumbers(ListNode l1, ListNode l2) { if (l1 == null) { return l2; } if (l2 == null) { return l1; }
2015-01-06 06:54:52 902
Mastering the Information Age Solving Problems with Visual Analytics
2018-07-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人