码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
swift 闭包
swift 中的闭包类似OC中的快代码和java 匿名内部类。它是预先定义了一段可以执行的代码,简单的可以将闭包看做是函数的一种简写example:将一个数组按照一定的函数映射成另一个数组有两种写法:普通函数的写法:var numbers = [20, 19, 7, 12]“numbers.map(...
分类:编程语言   时间:2014-08-23 00:58:49    阅读次数:359
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:其他好文   时间:2014-08-22 22:22:09    阅读次数:233
leetcode之add two numbers
/*#include using namespace std;  *//** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ cla...
分类:其他好文   时间:2014-08-22 19:46:39    阅读次数:147
POJ1844 Sum
Sum Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 10160   Accepted: 6674 Description Consider the natural numbers from 1 to N. By associating to each num...
分类:其他好文   时间:2014-08-22 17:55:49    阅读次数:179
UVA - 1436 Counting heaps
Description We are given a rooted tree of n vertices. The vertices are to be labeled with numbers 1, 2,..., n so that each label is unique and the heap condition holds, i.e. the label of any verte...
分类:其他好文   时间:2014-08-22 17:53:39    阅读次数:264
leetcode之Combination Sum
Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen ...
分类:其他好文   时间:2014-08-22 16:24:19    阅读次数:202
smarty模板引擎原理解析
//php 控制器文件'12333','a2'=>'2222222','a3'=>'333333','a4'=>'3333333');$smarty->assign($qq_numbers);$smarty->assign('title','这是我的QQ号码');$smarty->assign('c...
分类:其他好文   时间:2014-08-22 12:08:16    阅读次数:131
poj1002 487-3279
DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or p...
分类:其他好文   时间:2014-08-22 00:19:05    阅读次数:195
[LeetCode] Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2014-08-22 00:14:05    阅读次数:172
Swift 函数新特性
特性一:函数可以穿出不固定的同一种类型的参数(参数的个数不固定)example:“func sumOf(numbers: Int...) -> Int { var sum = 0 for number in numbers { sum += number } r...
分类:编程语言   时间:2014-08-22 00:06:35    阅读次数:301
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!