码迷,mamicode.com
首页 >  
搜索关键字:smallest    ( 560个结果
[LeetCode 988] Smallest String Starting From Leaf
Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1 rep ...
分类:其他好文   时间:2019-02-05 13:13:56    阅读次数:142
UVA - 11536 Smallest Sub-Array(尺取法)
题目: 思路: 读完题之后第一时间想到的是尺取法来做这个题,结果让自己写写崩了,还是练得少!! 到网上搜了一下学习了大佬的标记方法,用一个变量来判断是不是都已经出现,要比每次都判断一下快超多。 代码: ...
分类:其他好文   时间:2019-02-03 18:05:58    阅读次数:158
LC 988. Smallest String Starting From Leaf
Given the root of a binary tree, each node has a value from 0 to 25 representing the letters 'a' to 'z': a value of 0 represents 'a', a value of 1repr ...
分类:其他好文   时间:2019-02-03 14:11:35    阅读次数:195
LeetCode 908 Smallest Range I 解题报告
题目要求 Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some ar ...
分类:其他好文   时间:2019-02-03 10:42:23    阅读次数:195
#Leetcode# 378. Kth Smallest Element in a Sorted Matrix
https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/ Given a n x n matrix where each of the rows and columns are sorted in ascending ...
分类:其他好文   时间:2019-01-30 21:45:57    阅读次数:190
K Smallest Sums UVA - 11997
有序表合并 ...
分类:其他好文   时间:2019-01-23 23:30:11    阅读次数:295
LeetCode 943.Find the Shortest Superstring
"943.Find the Shortest Superstring 旅行商问题&状态压缩DP" Given an array A of strings, find any smallest string that contains each string in A as a substring. ...
分类:其他好文   时间:2019-01-19 16:19:49    阅读次数:265
Leetcode 41. First Missing Positive
41. First Missing Positive 题目链接:https://leetcode.com/problems/first-missing-positive/ Description: Given an unsorted integer array, find the smallest ...
分类:其他好文   时间:2019-01-05 21:30:55    阅读次数:200
TOJ 4244 Sum(单调栈区间极差)
描述 Given a sequence, we define the seqence's value equals the difference between the largest element and the smallest element in the sequence. As an e ...
分类:其他好文   时间:2018-12-30 17:34:19    阅读次数:213
LC 302. Smallest Rectangle Enclosing Black Pixels【lock, hard】
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one bla ...
分类:其他好文   时间:2018-12-21 21:17:29    阅读次数:240
560条   上一页 1 ... 8 9 10 11 12 ... 56 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!