码迷,mamicode.com
首页 >  
搜索关键字:simple example    ( 24106个结果
LeetCode OJ - Reverse Linked List II
题目:Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL...
分类:其他好文   时间:2014-06-09 23:03:18    阅读次数:254
LeetCode:Generate Parentheses
题目链接Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((...
分类:其他好文   时间:2014-06-09 15:11:33    阅读次数:212
苹果官方Swift文档翻译02
转自:http://www.cnblogs.com/caios/p/3771015.htmlWelcome to Swift (苹果官方Swift文档初译与注解二)---6~10页Simple Values翻译来自: Apple Inc. “The Swift Programming Languag...
分类:移动开发   时间:2014-06-08 23:42:49    阅读次数:447
LEETCODE--Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-06-08 21:56:41    阅读次数:297
湘潭 A simple problem
A simple problemAccepted : 30Submit : 303Time Limit : 15000 MSMemory Limit : 655360 KBProblem DescriptionThere is a simple problem. Given a number N. ...
分类:其他好文   时间:2014-06-08 21:14:04    阅读次数:226
hdu 1757 A Simple Math Problem (乘法矩阵)
A Simple Math ProblemTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2441Accepted Submission(s): 1...
分类:其他好文   时间:2014-06-08 20:33:48    阅读次数:175
[leetcode]Add Binary @ Python
原题地址:https://oj.leetcode.com/problems/add-binary/题意:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"...
分类:编程语言   时间:2014-06-08 20:28:04    阅读次数:300
Leetcode::Flatten Binary Tree to Linked List
Description:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The...
分类:其他好文   时间:2014-06-08 18:34:52    阅读次数:214
projecteuler---->problem=23----Non-abundant sums
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means th...
分类:其他好文   时间:2014-06-08 04:05:14    阅读次数:315
[LeetCode] Longest Substring Without Repeating Characters [15]
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the length...
分类:其他好文   时间:2014-06-08 03:06:52    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!