码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm ...
分类:其他好文   时间:2016-08-30 10:47:28    阅读次数:123
Minimum Size Subarray Sum
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return ...
分类:其他好文   时间:2016-08-30 07:05:37    阅读次数:134
First Unique Character in a String
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:其他好文   时间:2016-08-30 07:03:31    阅读次数:139
UVa11077
11077 Find the PermutationsSorting is one of the most used operations in real life, where Computer Science comes into act. It iswell-known that the lo ...
分类:其他好文   时间:2016-08-30 00:09:48    阅读次数:188
jquery操作select(取值,设置选中)
比如<select class="selector"></select> 1、设置value为pxx的项选中 $(".selector").val("pxx"); 2、设置text为pxx的项选中 $(".selector").find("option[text='pxx']").attr("sel ...
分类:Web程序   时间:2016-08-29 19:13:21    阅读次数:157
5. Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes ...
分类:其他好文   时间:2016-08-29 09:05:52    阅读次数:165
Find K Pairs with Smallest Sums -- LeetCode
You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th ...
分类:其他好文   时间:2016-08-29 08:04:09    阅读次数:243
Find the Difference -- LeetCode
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:其他好文   时间:2016-08-29 06:55:30    阅读次数:397
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:其他好文   时间:2016-08-29 06:53:36    阅读次数:139
[LeetCode] Find the Difference 寻找不同
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:其他好文   时间:2016-08-29 01:44:35    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!