摘要: 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 阅读(136) 评论(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 阅读(193) 评论(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 阅读(166) 评论(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 阅读(168) 评论(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 阅读(165) 评论(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 阅读(122) 评论(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 阅读(187) 评论(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 阅读(133) 评论(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 阅读(211) 评论(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 阅读(138) 评论(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 阅读(204) 评论(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 阅读(138) 评论(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 阅读(127) 评论(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 阅读(154) 评论(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 阅读(273) 评论(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 阅读(175) 评论(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 阅读(162) 评论(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 阅读(141) 评论(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 阅读(252) 评论(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 阅读(115) 评论(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 numUniqueEmails(Str 阅读全文
posted @ 2020-03-02 15:33 SheepCore 阅读(161) 评论(0) 推荐(0)
摘要: 1. Description: 2.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-24 3 */ 4 class Solution { 5 public int[] sortArrayByParity(int[] A) { 6 7 int[ 阅读全文
posted @ 2020-03-02 15:29 SheepCore 阅读(163) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-02-12 3 */ 4 class Solution { 5 public int[] sortedSquares(int 阅读全文
posted @ 2020-03-02 15:25 SheepCore 阅读(176) 评论(0) 推荐(0)
摘要: 1. Description: 2.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-10 3 * Definition for singly-linked list. 4 * public class ListNode { 5 * int v 阅读全文
posted @ 2020-03-02 15:16 SheepCore 阅读(171) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: /** * Created by sheepcore on 2019-05-10 * Definition for singly-linked list. * public class ListNode 阅读全文
posted @ 2020-03-02 15:10 SheepCore 阅读(122) 评论(0) 推荐(0)
摘要: 1. Description: 2.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-10 3 * Definition for singly-linked list. 4 * public class ListNode { 5 * int v 阅读全文
posted @ 2020-03-02 15:05 SheepCore 阅读(190) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-10 3 * Definition for singly-linked list. 4 * public class 阅读全文
posted @ 2020-03-02 15:02 SheepCore 阅读(170) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-10 3 */ 4 class Solution { 5 public int[] nextGreaterElemen 阅读全文
posted @ 2020-03-02 14:58 SheepCore 阅读(152) 评论(0) 推荐(0)
摘要: 1. Description: 2.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-09 3 * Definition for a binary tree node. 4 * public class TreeNode { 5 * int v 阅读全文
posted @ 2020-03-02 14:54 SheepCore 阅读(115) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 */ 4 class Solution { 5 public boolean isValid(String 阅读全文
posted @ 2020-03-02 14:40 SheepCore 阅读(128) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-09 3 */ 4 class Solution { 5 public int scoreOfParentheses( 阅读全文
posted @ 2020-03-02 14:36 SheepCore 阅读(221) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-09 3 * Definition for a binary tree node. 4 * public class 阅读全文
posted @ 2020-03-02 14:31 SheepCore 阅读(153) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-09 3 * Definition for singly-linked list. 4 * public class 阅读全文
posted @ 2020-03-02 14:26 SheepCore 阅读(405) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-09 3 */ 4 class Solution { 5 public boolean validateStackSe 阅读全文
posted @ 2020-03-02 14:17 SheepCore 阅读(184) 评论(0) 推荐(0)
摘要: 1. Description: 2.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 */ 4 class Solution { 5 public int[] dailyTemperatures(int[] T) { 6 int[] 阅读全文
posted @ 2020-03-02 14:13 SheepCore 阅读(163) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 */ 4 class Solution { 5 public int minAddToMakeValid(S 阅读全文
posted @ 2020-03-02 13:55 SheepCore 阅读(125) 评论(0) 推荐(0)
摘要: 1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 */ 4 5 class Solution { 6 public boolean isValid(String s) { 阅读全文
posted @ 2020-03-02 13:50 SheepCore 阅读(171) 评论(0) 推荐(0)
摘要: 1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 * Your MinStack object will be instantiated and called as suc 阅读全文
posted @ 2020-03-02 13:43 SheepCore 阅读(185) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 * Your MyStack object will be instantiated and called 阅读全文
posted @ 2020-03-02 13:39 SheepCore 阅读(223) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-03-07 3 * Your MyQueue object will be instantiated and called 阅读全文
posted @ 2020-03-02 13:35 SheepCore 阅读(166) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 * Definition for singly-linked list. 4 * public class 阅读全文
posted @ 2020-03-02 13:29 SheepCore 阅读(106) 评论(0) 推荐(0)
摘要: 1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 * Definition for singly-linked list. 4 * public class ListNod 阅读全文
posted @ 2020-03-02 13:24 SheepCore 阅读(153) 评论(0) 推荐(0)
摘要: 1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-08 3 * Definition for singly-linked list. 4 * public class ListNod 阅读全文
posted @ 2020-03-02 13:19 SheepCore 阅读(152) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-14 3 * Definition for singly-linked list. 4 * class ListNod 阅读全文
posted @ 2020-03-02 13:14 SheepCore 阅读(165) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 1 public String defangIPaddr(String address) { 2 return address.replace(".", "[.]"); 3 } 4. Summary: 阅读全文
posted @ 2020-03-02 13:03 SheepCore 阅读(142) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: Version 1: hashmap 1 /** 2 * Created by sheepcore on 2020-03-02 3 * @param J 4 * @param S 5 * @return 阅读全文
posted @ 2020-03-02 12:02 SheepCore 阅读(207) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: 4. Summary: 阅读全文
posted @ 2020-03-02 11:35 SheepCore 阅读(112) 评论(0) 推荐(0)
摘要: 1. Description: Notes: 2. Examples: 3.Solutions: Java Version 1: 1 /** 2 * @author sheepcore 3 * created on 2020-03-02 4 */ 5 public int[] decompressR 阅读全文
posted @ 2020-03-02 11:26 SheepCore 阅读(337) 评论(0) 推荐(0)
摘要: 1. Description notes: 2. Examples: 3. Solution: 1 """ 2 created by sheepcore on 2020-03-02 3 """ 4 from typing import List 5 6 7 def smallerNumbersTha 阅读全文
posted @ 2020-03-02 10:07 SheepCore 阅读(343) 评论(0) 推荐(0)