码迷,mamicode.com
首页 >  
搜索关键字:example 复杂条件查询    ( 17809个结果
[Leetcode] First Missing Positive
Questions:Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm...
分类:其他好文   时间:2014-06-13 13:16:42    阅读次数:205
[Leetcode] Interleaving String
Question:Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1="aabcc",s2="dbbca",Whens3="aadbbcbcac", return true...
分类:其他好文   时间:2014-06-12 19:06:19    阅读次数:195
[leetcode]Merge Intervals @ Python
原题地址:https://oj.leetcode.com/problems/merge-intervals/题意:Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6]...
分类:编程语言   时间:2014-06-12 14:55:49    阅读次数:235
【leetcode】Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is no...
分类:其他好文   时间:2014-06-10 18:36:29    阅读次数:193
Add Binary
题目 Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 方法 从后往前,每个字符进行判断。 public String addBinary(String a, String...
分类:其他好文   时间:2014-06-10 17:50:48    阅读次数:241
【leetcode】Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-06-10 11:51:42    阅读次数:213
LeetCode——Reverse Words in a String
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What constitutes a word? A sequence of non-space ch...
分类:其他好文   时间:2014-06-10 11:12:06    阅读次数:185
android使用两种方式注册receiver
1、 package com.example.myreceiver; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.content.IntentFilter; import android.view.Menu; import android...
分类:移动开发   时间:2014-06-10 11:10:49    阅读次数:275
Leetcode OJ: Binary Tree Maximum Path Sum
Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the be...
分类:其他好文   时间:2014-06-10 10:42:58    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!