码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
leetcode75 Sort Colors
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
Power Strings POJ - 2406 后缀数组
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
1351. Count Negative Numbers in a Sorted Matrix
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
LeetCode 390. Elimination Game
原题链接在这里: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
16. 3Sum Closest
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
LeetCode 1209. Remove All Adjacent Duplicates in String II
原题链接在这里: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
LeetCode 797. All Paths From Source to Target
原题链接在这里: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
101. Symmetric Tree
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
75. Sort Colors
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
56. Merge Intervals
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
24278条   上一页 1 ... 67 68 69 70 71 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!