码迷,mamicode.com
首页 >  
搜索关键字:same    ( 2737个结果
Sort Colors <LeetCode>
Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or...
分类:其他好文   时间:2014-09-03 16:40:46    阅读次数:231
PHP Array_Map
输出:Array ( [0] => Horse [1] => Fido [2] => Cat )输出:Array ( [0] => different [1] => same [2] => different )请看当自定义函数名设置为 null 时的情况:输出:Array ([0] => Arra...
分类:Web程序   时间:2014-09-03 14:55:56    阅读次数:192
LeetCode Solutions : Combination Sum I & II
Combination Sum  Given a set of candidate numbers (C) and a target number (T),  find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen fro...
分类:其他好文   时间:2014-09-02 17:48:05    阅读次数:244
HDU-2259-Continuous Same Game (2)(BFS+DFS+模拟)
Problem Description After repeated attempts, LL finds the greedy strategy is very awful in practice. Even there is no apparent evidence to proof it is better than a random one. So he has to drop th...
分类:其他好文   时间:2014-09-02 12:29:04    阅读次数:226
[cross domain] four approachs to cross domain in javascript
four approachs can cross domain in javascript1.jsonp2.document.domain(only in frame and they have one same parent domain)3.window.name4.window.postMes...
分类:移动开发   时间:2014-09-02 11:47:34    阅读次数:197
[LeetCode] 桶排序的特殊解,例 Sort Color
Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or...
分类:其他好文   时间:2014-09-02 01:34:23    阅读次数:262
Same Tree
问题描述 Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 解决...
分类:其他好文   时间:2014-09-01 15:40:33    阅读次数:146
Oracle 11gR2 Duplicate target database for standby
1. copy standby control file from primary db to standby db and rename the file name and location in stdby db same as the primary db2. copy password fi...
分类:数据库   时间:2014-08-31 15:48:51    阅读次数:382
最长字串问题,python实现
这篇博客的目的是为了提醒自己,以后笔试一定得及时交啊?!!!! 阿里笔试的最后一个题,我顺手就写python实现,代码如下,不知道对不对,反正当时好几个数据都过了。 不过,反正没交上去,那个题填代码的地方是空的,对错都没用了。先记下,改天细究: def largest_common(query, text, is_first_same): if (len(query) == 0 or...
分类:编程语言   时间:2014-08-29 21:26:08    阅读次数:297
LeetCode: Same Tree
LeetCode: Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are struct...
分类:其他好文   时间:2014-08-28 22:40:46    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!