码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
3Sum Smaller -- LeetCode
Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition nums[i] + ...
分类:其他好文   时间:2016-08-28 07:35:41    阅读次数:210
sqlzoo.net刷题3
Find the continents where all countries have a population <= 25000000. Then find the names of the countries associated with these continents. Show nam ...
分类:数据库   时间:2016-08-28 06:31:17    阅读次数:347
leetcode -124. Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in th ...
分类:其他好文   时间:2016-08-28 01:20:29    阅读次数:140
[LintCode] Submatrix Sum 子矩阵之和
Given an integer matrix, find a submatrix where the sum of numbers is zero. Your code should return the coordinate of the left-up and right-down numbe ...
分类:其他好文   时间:2016-08-28 00:59:36    阅读次数:233
LeetCode40 Combination Sum II
题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each ...
分类:其他好文   时间:2016-08-27 23:20:38    阅读次数:127
【LeeCode】 15. 3Sum 解题小结
题目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum ...
分类:其他好文   时间:2016-08-27 23:15:21    阅读次数:174
algorithm 中的常用函数
非修改性序列操作(12个) 循环 对序列中的每个元素执行某操作 for_each() 查找 在序列中找出某个值的第一次出现的位置 find() 在序列中找出符合某谓词的第一个元素 find_if() 在序列中找出一子序列的最后一次出现的位置 find_end() 在序列中找出第一次出现指定值集中之值 ...
分类:其他好文   时间:2016-08-27 16:42:52    阅读次数:152
头文件algorithm中的常用函数
非修改性序列操作(12个) 循环 对序列中的每个元素执行某操作 for_each() 查找 在序列中找出某个值的第一次出现的位置 find() 在序列中找出符合某谓词的第一个元素 find_if() 在序列中找出一子序列的最后一次出现的位置 find_end() 在序列中找出第一次出现指定值集中之值 ...
分类:其他好文   时间:2016-08-27 16:41:52    阅读次数:128
Leetcode 387 First Unique Character in a String
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:其他好文   时间:2016-08-27 14:06:41    阅读次数:156
【LeetCode】217. Contains Duplicate 解题小结
题目: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the ...
分类:其他好文   时间:2016-08-27 11:11:23    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!