码迷,mamicode.com
首页 >  
搜索关键字:kth smallest element    ( 12839个结果
Jump Game II
题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. ...
分类:其他好文   时间:2014-06-19 11:46:47    阅读次数:277
Jump Game
题目 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. ...
分类:其他好文   时间:2014-06-19 10:05:39    阅读次数:278
AngularJS - Directive Restrictions
While it’s cool to make a custom element like we did the the previous cast, it’s actually more common to do things like create custom attributes. Thes...
分类:Web程序   时间:2014-06-16 10:19:04    阅读次数:276
querySelectorAll的BUG
querySelector和querySelectorAll是W3C提供的新的查询接口目前IE8/9及Firefox/Chrome/Safari/Opera的最新版已经支持它们。但是Element.querySelectorAll有个bug asfd var bar = ...
分类:其他好文   时间:2014-06-13 00:13:52    阅读次数:340
Remove Duplicates from Sorted List
题目 Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 方法 遍...
分类:其他好文   时间:2014-06-11 00:41:44    阅读次数:207
[LeetCode] Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime complex...
分类:其他好文   时间:2014-06-10 21:27:22    阅读次数:284
[LeetCode] Single Number II
Given an array of integers, every element appears three times except for one. Find that single one.Note: Your algorithm should have a linear runtime c...
分类:其他好文   时间:2014-06-10 20:42:48    阅读次数:315
[Leetcode] Merge k Sorted Lists
Question: Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.Solution: Find the smallest list-head first....
分类:其他好文   时间:2014-06-10 19:51:30    阅读次数:278
[LeetCode OJ] Single Number之二 ——Given an array of integers, every element appears THREE times except for one. Find that single one.
1 class Solution { 2 public: 3 int singleNumber(int A[], int n) { 4 int bits = sizeof(int)*8; 5 int result=0; 6 for(int i...
分类:移动开发   时间:2014-06-10 19:45:48    阅读次数:334
[LeetCode OJ] Single Number之一 ——Given an array of integers, every element appears twice except for one. Find that single one.
1 class Solution { 2 public: 3 int singleNumber(int A[], int n) { 4 int i,j; 5 for(i=0; i<n; i++) 6 { 7 for(j...
分类:移动开发   时间:2014-06-10 11:41:55    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!