码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
Two Sum
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:其他好文   时间:2014-09-03 22:31:37    阅读次数:386
Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl...
分类:其他好文   时间:2014-09-03 22:28:37    阅读次数:250
POJ 1845 Sumdiv
Description Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901). Input The only line contains the ...
分类:其他好文   时间:2014-09-03 16:50:26    阅读次数:271
poj 3280
Cheapest Palindrome Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 5868   Accepted: 2853 Description Keeping track of all the cows can be a tricky task so...
分类:其他好文   时间:2014-09-03 15:01:56    阅读次数:289
有两个变量a和b,不用“if”、“? :”、“switch”或其他判断语句,找出两个数中比较大的
1、问题 There are two int variables: a and b, don't use "if"、"? :"、"switch" or other judgement statement, find out the biggest one of the two numbers. (有两个变量a和b,不用“if”、“? :”、“switch”或其他判断语句,找出两个数中比较大...
分类:其他好文   时间:2014-09-03 11:20:16    阅读次数:178
Write a program to convert string to number without using library function。
/* Write a program that prints the numbers from 1 to 100,but for  multiples of three print “Fizz” instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of...
分类:其他好文   时间:2014-09-03 11:19:16    阅读次数:221
Add Two Numbers
问题描述 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers...
分类:其他好文   时间:2014-09-02 19:57:55    阅读次数:166
LeetCode Solutions : Combination Sum I & II
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 fro...
分类:其他好文   时间:2014-09-02 17:48:05    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!