算法
弓长南
这个作者很懒,什么都没留下…
展开
-
算法网站
leetcodehttp://leetcode.com/careeruphttp://www.careercup.com/http://hawstein.com/posts/ctci-solutions-contents.htmlglassdoorhttp://www.glassdoor.com/index.htmtopcoderhttp://www.topcoder.com/z...转载 2018-12-27 10:07:00 · 473 阅读 · 0 评论 -
leetcode-1.Two Sum
class Solution { public int[] twoSum(int[] nums, int target) { int[] result = new int[2]; for(int i = 0; i<nums.length-1;i++){ int cha = target - nums[i]; ...原创 2019-01-10 18:13:00 · 199 阅读 · 0 评论 -
leetcode-2. Add Two Numbers
public ListNode addTwoNumbers(ListNode l1, ListNode l2) { if(l1==null) return l2; if(l2==null) return l1; int carry = 0; ListNode ne...转载 2019-01-10 18:15:10 · 211 阅读 · 0 评论 -
leetcode--3.Longest Substring Without Repeating Characters
public int lengthOfLongestSubstring(String s) { if(s.length()<=1){ return s.length(); } StringBuilder sb = new StringBuilder(); int max = 0; int tmp = 0; f...原创 2019-01-10 18:16:42 · 208 阅读 · 0 评论