码迷,mamicode.com
首页 >  
搜索关键字:smallest sub-array    ( 590个结果
codeforces 632C. The Smallest String Concatenation 排序
题目链接 给出n个字符串, 将他们连在一起, 求连玩之后字典序最小的那种情况。 按a+b<b+a排序.... #include <iostream> #include <vector> #include <cstdio> #include <cstring> #include <algorithm>
分类:编程语言   时间:2016-03-02 09:28:12    阅读次数:135
Arrange an Array to Form a Smallest Digit
/** * Input an array of positive integers, arrange the integers to form new digits, * and output the smallest digit among all the new ones. * Input Ex
分类:其他好文   时间:2016-02-23 20:47:20    阅读次数:265
LeetCode-230. Kth Smallest Element in a BST
Description: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid,
分类:其他好文   时间:2016-02-20 00:30:11    阅读次数:179
HDU 1081 To The Max
题目链接 Problem Description Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or
分类:其他好文   时间:2016-02-09 17:25:10    阅读次数:234
algorithm@ find kth smallest element in two sorted arrays (O(log n time)
The trivial way, O(m + n): Merge both arrays and the k-th smallest element could be accessed directly. Merging would require extra space of O(m+n). Th
分类:其他好文   时间:2016-02-08 04:53:47    阅读次数:381
HDU 1019 Least Common Multiple 数学题
Problem Description The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbe
分类:其他好文   时间:2016-02-03 10:44:31    阅读次数:130
【树】Kth Smallest Element in a BST(递归)
题目: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ B
分类:其他好文   时间:2016-01-29 16:05:13    阅读次数:141
把数组排成最小的数/1038. Recover the Smallest Number
题目描述输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。例如输入数组{3,32,321},则打印出这三个数字能排成的最小数字为321323。Given a collection of number segments, you are supposed to...
分类:编程语言   时间:2016-01-25 23:00:14    阅读次数:333
[?]*Smallest Character strictly larger than the Search Character
/*** Return the smallest character that is strictly larger than the search character,* If no such character exists, return the smallest character in t...
分类:其他好文   时间:2016-01-24 08:09:56    阅读次数:160
The Smallest Difference
Given two array of integers(the first array is array A, the second array is array B), now we are going to find a element in array A which is A[i], and...
分类:其他好文   时间:2016-01-15 07:34:11    阅读次数:170
590条   上一页 1 ... 34 35 36 37 38 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!