摘要: 1. Description: Notes: 2. Examples: 3.Solutions: /** * Created by sheepcore on 2018-12-24 */ class Solution { public int[] nextGreaterElement(int[] nu 阅读全文
posted @ 2020-03-02 17:00 SheepCore 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2018-12-24 3 */ 4 class Solution { 5 public String removeOuterParen 阅读全文
posted @ 2020-03-02 16:55 SheepCore 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2018-12-24 3 */ 4 class Solution { 5 public int calPoints(String[] 阅读全文
posted @ 2020-03-02 16:51 SheepCore 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2018-12-24 3 */ 4 class Solution { 5 public boolean buddyStrings(St 阅读全文
posted @ 2020-03-02 16:47 SheepCore 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2018-11-11 3 */ 4 class Solution { 5 public String reverseOnlyLette 阅读全文
posted @ 2020-03-02 16:42 SheepCore 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 class Solution { 2 public int findLUSlength(String a, String b) { 3 return a.equals(b) ? -1 : Math. 阅读全文
posted @ 2020-03-02 16:37 SheepCore 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2018-11-11 3 */ 4 class Solution { 5 public String[] reorderLogFile 阅读全文
posted @ 2020-03-02 16:32 SheepCore 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1. Description: 2.Solutions: 1 /** 2 * Created by sheepcore on 2019-01-23 3 */ 4 class Solution { 5 public int[] twoSum(int[] nums, int target) { 6 Ma 阅读全文
posted @ 2020-03-02 16:28 SheepCore 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int[] sumEvenAfterQueri 阅读全文
posted @ 2020-03-02 16:23 SheepCore 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int arrayPairSum(int[] 阅读全文
posted @ 2020-03-02 16:20 SheepCore 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int[][] kClosest(int[][ 阅读全文
posted @ 2020-03-02 16:16 SheepCore 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int[] sortArrayByParity 阅读全文
posted @ 2020-03-02 16:11 SheepCore 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int numSpecialEquivGrou 阅读全文
posted @ 2020-03-02 16:07 SheepCore 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public void reverseString(char[] s) { 阅读全文
posted @ 2020-03-02 16:04 SheepCore 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1. Description: 2.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public String reverseWords(String s) { 6 String[] 阅读全文
posted @ 2020-03-02 16:00 SheepCore 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 * best time complexity: O(n) 4 * average time complexity: O(n 阅读全文
posted @ 2020-03-02 15:57 SheepCore 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int[][] flipAndInvertIm 阅读全文
posted @ 2020-03-02 15:52 SheepCore 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int repeatedNTimes(int[ 阅读全文
posted @ 2020-03-02 15:48 SheepCore 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int uniqueMorseRepresen 阅读全文
posted @ 2020-03-02 15:44 SheepCore 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1. Description: 2. Examples: 3.Solutions: 1 class Solution { 2 public String toLowerCase(String str) { 3 return str.toLowerCase(); 4 } 5 } 阅读全文
posted @ 2020-03-02 15:36 SheepCore 阅读(100) 评论(0) 推荐(0) 编辑