码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
在Windows系统上安装Ruby On Rails
在网上下载安装程序? railsinstaller-3.1.0 自动安装后 出现如下错误 C:\Users\Admin>gem install rubygems-update ERROR:? Could not find a valid gem ‘rubygems-update‘ (>= 0), here is why: ???????...
分类:Windows程序   时间:2015-06-12 17:33:47    阅读次数:318
Leetcode[113]-Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.For example: Given the below binary tree and sum = 22, 5 / \...
分类:其他好文   时间:2015-06-12 17:17:40    阅读次数:84
LeetCode之“动态规划”:Interleaving String
题目链接 题目要求: Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2. For example, Given: s1="aabcc", s2="dbbca", Whens3="aadbbcb...
分类:其他好文   时间:2015-06-12 17:08:24    阅读次数:83
Median of Two Sorted Arrays
1. Question找两个有序数组的中位数。时间复杂度O(log(m+n))There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arr...
分类:其他好文   时间:2015-06-12 16:50:06    阅读次数:90
Longest Substring Without Repeating Characters
1. Question求最长无重复字符子串。Given a string, find the length of the longest substring without repeating characters. For example, the longest substring withou...
分类:其他好文   时间:2015-06-12 16:48:13    阅读次数:118
mongodb避免的查询模式
1少用countdb.testcol1.find({xxx:15}).count()2避免large-skipdb.testcol1.find({xxx:15}).skip(100000).limit(10)3不用notin
分类:数据库   时间:2015-06-12 15:06:46    阅读次数:100
MongoDB查询命令详解
1、查询所有记录 复制代码代码如下: db.userInfo.find(); 相当于:select* from userInfo; 默认每页显示20条记录,当显示不下的情况下,可以用it迭代命令查询下一页数据。注意:键入it命令不能带“;” 但是你可以设置每页显示数据的大小,用DBQuery.shellBatchSize= 50;这样每页就显示50条记录了。 2、查询去掉后...
分类:数据库   时间:2015-06-12 15:00:49    阅读次数:180
Leetcode[129]-Sum Root to Leaf Numbers
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which represents the number 123.Find the total sum of al...
分类:其他好文   时间:2015-06-12 14:55:41    阅读次数:100
Two Sum
工作一年,发现自己的基础非常薄弱,对数据结构相关的知识,不够扎实。决定刷新leetcode题目,巩固下。题目1:Two SumGiven an array of integers, find two numbers such that they add up to a specific target...
分类:其他好文   时间:2015-06-12 14:37:37    阅读次数:105
leetcode之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 arr...
分类:其他好文   时间:2015-06-12 13:07:15    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!