码迷,mamicode.com
首页 >  
搜索关键字:example    ( 17798个结果
LeetCode:Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After rem...
分类:其他好文   时间:2014-05-26 09:08:23    阅读次数:262
IOS MONO Rivets 应用 跳转 导航
Rivets是MONO上开源的一个DLL。跨平台上实现应用与应用间的跳转。于传统应用跳转不同,传统跳转需要连接先跳转到WEB上然后才跳转到应用中,这是一个用户体验极差的操作。范例中异步调用Example Store 应用,通过特色URL,轻松打开想要的应用,打开的应用对接收到URL进行处理。 1 n...
分类:移动开发   时间:2014-05-26 09:03:39    阅读次数:341
leetcode题目:Sum Root to Leaf Numbers和Longest Consecutive Sequence
题目一: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Fin...
分类:其他好文   时间:2014-05-26 04:06:41    阅读次数:248
LeetCode: Spiral Matrix [058]
【题目】 Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] You should return [1,2,3,6,9,8,7,4,5]. 【题意】 螺旋输出MxN...
分类:其他好文   时间:2014-05-24 23:11:02    阅读次数:279
LeetCode: Maximum Subarray [052]
【题目】 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguous subarray [4,?1,2,1] has the largest sum = 6. 【题意】 给定一个数组,找出和最大的子数组,返回...
分类:其他好文   时间:2014-05-24 22:19:17    阅读次数:260
LeetCode: Jump Game [054]
【题目】 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. Determine if you are able to reach the last index. For example:...
分类:其他好文   时间:2014-05-24 20:44:39    阅读次数:221
LeetCode: Anagrams [048]
【题目】 Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. For example: Input:  ["tea","and","ate","eat","den"] Output: ["tea","ate","eat"] 【题意】 anagrams指的是颠倒字母顺序构成的单词,以tea为例,则与它an...
分类:其他好文   时间:2014-05-24 18:36:01    阅读次数:317
LeetCode: Merge Intervals [055]
【题目】 Given an array of non-negative integers, you are initially positioned at the first index of the array. Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. ...
分类:其他好文   时间:2014-05-24 14:18:27    阅读次数:193
LeetCode: Minimum Window Substring
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 = "ADOBECOD...
分类:Windows程序   时间:2014-05-24 11:19:26    阅读次数:399
sort->rsort
sort 1 sort — 对数组排序 本函数对数组进行排序。当本函数结束时数组单元将被从最低到最高重新安排。 2 Example #1 sort() 例子 $val ){echo "fruits[" . $key . "]=" . $val . "\n" ;} ?>...
分类:其他好文   时间:2014-05-24 09:28:02    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!