1 """ 2 Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors i ...
分类:
其他好文 时间:
2020-02-18 23:20:24
阅读次数:
134
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concate ...
分类:
编程语言 时间:
2020-02-18 16:33:41
阅读次数:
88
Given a m * n matrix grid which is sorted in non-increasing order both row-wise and column-wise. Return the number of negative numbers in grid. Exampl ...
分类:
其他好文 时间:
2020-02-18 13:04:04
阅读次数:
75
原题链接在这里:https://leetcode.com/problems/elimination-game/ 题目: There is a list of sorted integers from 1 to n. Starting from left to right, remove the fi ...
分类:
其他好文 时间:
2020-02-18 09:56:29
阅读次数:
79
1.题目描述 英文版: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the su ...
分类:
其他好文 时间:
2020-02-18 09:54:23
阅读次数:
55
原题链接在这里:https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ 题目: Given a string s, a k duplicate removal consists of choosing k ...
分类:
其他好文 时间:
2020-02-18 09:50:48
阅读次数:
75
原题链接在这里:https://leetcode.com/problems/all-paths-from-source-to-target/ 题目: Given a directed, acyclic graph of N nodes. Find all possible paths from no ...
分类:
其他好文 时间:
2020-02-18 09:41:25
阅读次数:
63
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet ...
分类:
其他好文 时间:
2020-02-17 23:52:41
阅读次数:
90
Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the or ...
分类:
其他好文 时间:
2020-02-17 23:42:05
阅读次数:
71
Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15,18]] Explan ...
分类:
其他好文 时间:
2020-02-17 22:31:56
阅读次数:
92