码迷,mamicode.com
首页 >  
搜索关键字:example 复杂条件查询    ( 17809个结果
LeetCode: Combinations [077]
【题目】 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers ...
分类:其他好文   时间:2014-06-05 11:14:26    阅读次数:255
LeetCode: Minimum Window Substring [076]
【题目】 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers ...
分类:Windows程序   时间:2014-06-05 10:03:07    阅读次数:473
activity生命周期的onPause和onStop
搞了这么长时间的android开发,却对一些基础的东西一直模棱两可。。。就比如这个onPause和onStop。如果从一个界面,跳到另一个界面,那么是调用哪个呢? 经过我的实验。搞清楚了。onPause是有活动状态变为非活动状态。onStop()是变为不可见。那么从一个页面跳到另一个页面就是依次调用onPause,onStop.看下程序: package com.example.fuhe;...
分类:其他好文   时间:2014-06-05 07:15:29    阅读次数:234
[leetcode]Reverse Words in a String @ Python
原题地址:https://oj.leetcode.com/problems/reverse-words-in-a-string/题意:Given an input string, reverse the string word by word.For example,Given s = "the s...
分类:编程语言   时间:2014-06-03 11:13:36    阅读次数:258
Mongdb操作嵌套文档
1、一个文档如下db.posts.find(){ "_id" : ObjectId("5388162dfc164ee1f39be37f"), "title" : "Java Example", "content" : "This is a example for Java!", ...
分类:数据库   时间:2014-05-31 21:50:28    阅读次数:396
ProjectEuler 009题
题目:A Pythagorean triplet is a set of three natural numbers, a b c, for which,a2 + b2 = c2For example, 32 + 42 = 9 + 16 = 25 = 52.There exists exactl.....
分类:其他好文   时间:2014-05-31 01:23:03    阅读次数:254
LeetCode: Longest Substring Without Repeating Characters 题解
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-05-30 23:46:09    阅读次数:453
Binary Tree Maximum Path Sum
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-05-30 16:10:54    阅读次数:185
Palindrome Partitioning
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:其他好文   时间:2014-05-30 16:04:06    阅读次数:237
Triangle
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-05-30 14:59:37    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!