码迷,mamicode.com
首页 >  
搜索关键字:first    ( 14115个结果
LeetCode: Jump Game Total 解题报告
Jump GameGiven an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents yo...
分类:其他好文   时间:2014-10-21 12:11:42    阅读次数:222
[Leetcode] Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Solution:...
分类:其他好文   时间:2014-10-21 02:17:26    阅读次数:157
【MonogDB】The description of index(二) Embedded and document Index
In this blog, we will talk about another the index which was called "The embedded ". First we init 1w the records as follows: 2.2 The embedded Index  The compare between the before and t...
分类:数据库   时间:2014-10-21 01:04:05    阅读次数:240
leetcode第27题--Implement strStr()
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.就是判断haystack中是否有needle,如果包...
分类:其他好文   时间:2014-10-21 00:54:00    阅读次数:151
细说C++中的sort 函数
我们在算法程序中用的最多的函数就行sort,但经常会忘记如何写比较函数,这里详细做个总结。1) C++中sort函数的原型default (1)template void sort (RandomAccessIterator first, RandomAccessIterator last);c.....
分类:编程语言   时间:2014-10-21 00:34:06    阅读次数:229
[LeetCode]Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. /** * Definition for singly-linked list. * publ...
分类:其他好文   时间:2014-10-20 21:28:05    阅读次数:233
Exercise 1: A Good First Program
print "Hello World!" print "Hello Again" print "I like typing this."print "This is fun." print 'Yay! Printing.'print "I'd much rather you 'not'." prin...
分类:其他好文   时间:2014-10-20 21:01:43    阅读次数:171
LeetCode: First Missing Positive 解题报告
Q: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 sho...
分类:其他好文   时间:2014-10-20 20:47:32    阅读次数:231
Pascal's Triangle & II 解题报告
杨辉三角,分别求前n行和第n行。 【求杨辉三角前n行】 Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,...
分类:其他好文   时间:2014-10-20 19:32:35    阅读次数:190
翻页效果的实现(仿满座团购主页)
整体实现效果:点击root,也就是红色的任何处,页面会像翻书一样翻转。翻转到first,也就是蓝色的界面。当点击顶部root页面部分的时候,页面会重新翻到root,也就是红色的界面。开始时候的效果图:点击root任何处的效果图:点击first顶部的效果图:代码:-(void)touchesBegan...
分类:其他好文   时间:2014-10-20 17:08:10    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!