码迷,mamicode.com
首页 >  
搜索关键字:lintcode    ( 1584个结果
LintCode——交叉字符串
描述:给出三个字符串:s1、s2、s3,判断s3是否由s1和s2交叉构成。 样例:s1 = "aabcc" s2 = "dbbca" - 当 s3 = "aadbbcbcac",返回 true. - 当 s3 = "aadbbbaccc", 返回 false. Java 1 public class ...
分类:其他好文   时间:2018-05-30 19:29:16    阅读次数:193
156. Merge Intervals【LintCode by java】
Description Given a collection of intervals, merge all overlapping intervals. Description Description Given a collection of intervals, merge all overl ...
分类:编程语言   时间:2018-05-30 16:43:32    阅读次数:171
30. Insert Interval【LintCode by java】
Description Given a non-overlapping interval list which is sorted by start point. Insert a new interval into it, make sure the list is still in order ...
分类:编程语言   时间:2018-05-30 15:40:52    阅读次数:258
155. Minimum Depth of Binary Tree【LintCode by java】
Description Description Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root no ...
分类:编程语言   时间:2018-05-29 11:56:35    阅读次数:222
49 字符大小写排序
原题网址:https://www.lintcode.com/problem/sort-letters-by-case/description 描述 给定一个只包含字母的字符串,按照先小写字母后大写字母的顺序进行排序。 描述 描述 给定一个只包含字母的字符串,按照先小写字母后大写字母的顺序进行排序。 ...
分类:编程语言   时间:2018-05-28 21:48:20    阅读次数:217
Lintcode 92. 背包问题 && 125. 背包问题 II
92. 背包问题 描述 在n个物品中挑选若干物品装入背包,最多能装多满?假设背包的大小为m,每个物品的大小为A[i] 描述 描述 在n个物品中挑选若干物品装入背包,最多能装多满?假设背包的大小为m,每个物品的大小为A[i] 在n个物品中挑选若干物品装入背包,最多能装多满?假设背包的大小为m,每个物品 ...
分类:其他好文   时间:2018-05-26 17:54:58    阅读次数:146
138. Subarray Sum【Lintcode,by java】
Description Description Given an integer array, find a subarray where the sum of numbers is zero. Your code should return the index of the first numbe ...
分类:编程语言   时间:2018-05-26 13:02:43    阅读次数:156
45 最大子数组差
原题网址:https://www.lintcode.com/problem/maximum-subarray-difference/description 描述 给定一个整数数组,找出两个不重叠的子数组A和B,使两个子数组和的差的绝对值|SUM(A) - SUM(B)|最大。 返回这个最大的差值。 ...
分类:编程语言   时间:2018-05-25 00:24:39    阅读次数:221
lintcode 734. 形式为a^i b^j c^k的子序列数量 题解
描述 给一字符串, 对形式为 a^i b^j c^k 的子序列进行计数, 即它由 i 个字符 a, 接着是 j 个字符 b, 然后是 k 个字符 c组成, i >= 1, j >= 1, k >= 1.Note: 如果两个子序列在原字符串中的index集合是不同的,则认为两个子序列不同。 给一字符串 ...
分类:其他好文   时间:2018-05-24 13:13:03    阅读次数:177
34 N皇后问题Ⅱ
原题网址:https://www.lintcode.com/zh-cn/old/problem/n-queens-ii/ 34. N皇后问题 II 描述 笔记 数据 评测 描述 笔记 数据 评测 讨论区 根据n皇后问题,现在返回n皇后不同的解决方案的数量而不是具体的放置布局。 您在真实的面试中是否遇 ...
分类:其他好文   时间:2018-05-19 21:30:55    阅读次数:176
1584条   上一页 1 ... 18 19 20 21 22 ... 159 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!