1234. Replace the Substring for Balanced String

You are given a string containing only 4 kinds of characters 'Q', 'W', 'E' and 'R'. A string is said to be balanced if each of its characters appears Leetcode 2019年10月20日 159次浏览

1233. Remove Sub-Folders from the Filesystem

Given a list of folders, remove all sub-folders in those folders and return in any order the folders after removing. If a folder[i] is located within Leetcode 2019年10月20日 138次浏览

1232. Check If It Is a Straight Line

You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight Leetcode 2019年10月20日 119次浏览

140. Word Break II

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is Leetcode 2019年10月19日 40次浏览

19. Remove Nth Node From End of List

Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. Leetcode 链表 2019年10月17日 43次浏览

82. Remove Duplicates from Sorted List II

Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1: Input: 1-&g Leetcode 链表 2019年10月17日 48次浏览

92. Reverse Linked List II

Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: Input: 1->2->3->4->5->NULL, m Leetcode 链表 2019年10月17日 37次浏览

139. Word Break

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequ Leetcode 动态规划 2019年10月17日 45次浏览

20. Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: O Leetcode 2019年10月14日 41次浏览

Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex Leetcode 2019年10月14日 33次浏览