码迷,mamicode.com
首页 >  
搜索关键字:not find    ( 24186个结果
二叉树系列 - 二叉树的深度,例 [LeetCode]
二叉树的深度的概念最值得注意的地方,在于 到"叶子"节点的距离。一般来说,如果直接说“深度”,都是指最大深度,即最远叶子的距离。这里放两道例题,最小深度和最大深度。1. 二叉树的最小深度Given a binary tree, find its minimum depth.The minimum d...
分类:其他好文   时间:2014-08-02 23:17:44    阅读次数:243
POJ 2356 Find a multiple 鸽巢原理
题目来源:POJ 2356 Find a multiple 题意:n个数 选出任意个数 使得这些数的和是n的倍数 思路:肯定有解 并且解是连续的一段数 证明: 假设有m个数 a1,a2,a3...am    s1 s2 s3...sm为前缀和 s1 = a1 s2 = a1+a2 s3 = a1+a2+a3... sm = a1+a2+a3+...+am 1.如果某个前缀和si%m =...
分类:其他好文   时间:2014-08-02 21:01:54    阅读次数:312
Redbean:入门(二) - Find
4');//普通使用 //2.相对于load而言,find提供了更丰富的可扩展,可自定义性,可进行自行sql组合 $result = R::find($tableName,'is_my_name is not null');//使用not null //3.可使用...
分类:数据库   时间:2014-08-02 20:51:45    阅读次数:222
LeetCode 第二题,Median of Two Sorted Arrays
题目再现 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 题意解析...
分类:其他好文   时间:2014-08-02 18:24:13    阅读次数:335
正则表达式
Q1.EmEditor中转换C#注释的显示格式,由三行显示成一行1 /// 2 /// 対象期間3 /// 原来格式1 /// 対象期間现在格式A1.使用编辑器的替换功能,Find:///\s*\r\n.+///\s*(.+)\r\n....
分类:其他好文   时间:2014-08-02 18:08:43    阅读次数:201
Single Number II
Single Number II Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?...
分类:其他好文   时间:2014-08-02 12:53:53    阅读次数:289
【HackerRank】Sherlock and Array
Watson gives an array A1,A2...AN to Sherlock. Then he asks him to find if there exists an element in the array, such that, the sum of elements on its ...
分类:其他好文   时间:2014-08-02 12:36:13    阅读次数:185
poj 2251 -- Dungeon Master
Dungeon MasterTime Limit:1000MSMemory Limit:65536KTotal Submissions:16468Accepted:6395DescriptionYou are trapped in a 3D dungeon and need to find the ...
分类:其他好文   时间:2014-08-02 12:12:43    阅读次数:220
如何统计代码行数
如何统计代码行数 linux下提供了很多实用工具,甚至在安卓上,都有移植的busybox包含这些工具。根据KISS理念,这些工具的功能很单一。但这些工具组合起来,就可以很方面的统计代码量了。 统计代码行数 流程为:首先使用find命令找到所有后缀名符合规则的源代码文件,之后使用wc命令统计行数。文件数可能过多,为防止出错使用xargs命令分割参数列表,最后得到的结果可以使用sort排...
分类:其他好文   时间:2014-08-02 10:04:33    阅读次数:292
Binary Tree Maximum Path Sum leetcode java
题目:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1...
分类:编程语言   时间:2014-08-02 09:50:13    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!