码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
LeetCode --- Add Two Numbers
题目链接说来算是个基础题目,可是还是各种CE,各种WA,基础还是不扎实。附上代码: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *ne...
分类:其他好文   时间:2014-05-28 23:56:38    阅读次数:382
[leetcode]Minimum Path Sum @ Python
原题地址:https://oj.leetcode.com/problems/minimum-path-sum/题意:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right w...
分类:编程语言   时间:2014-05-28 03:03:13    阅读次数:320
Palindrome Number (回文数)
回文数是指这样的数字:正读和倒读都是一样的。如:595,2332都是回文数,234不是回文数。注意:负数不是回文数Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could ne...
分类:其他好文   时间:2014-05-27 23:44:17    阅读次数:459
LeetCode: Two Sum 题解
Given 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 two nu...
分类:其他好文   时间:2014-05-26 19:50:39    阅读次数:314
LeetCode: palindromes 题解
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:其他好文   时间:2014-05-26 18:07:52    阅读次数:217
LeetCode: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   and return i...
分类:其他好文   时间:2014-05-25 21:36:52    阅读次数:268
关于可图化序列的一点结论 NEU 1429
Graphic SequenceA graphic sequence is a sequence of numbers which can be thedegree sequenceof somegraph. A sequence can be checked to determine if it ...
分类:其他好文   时间:2014-05-25 19:18:00    阅读次数:331
poj1142Smith Numbers
筛素数,分解质因子 1 //Accepted 620 KB 15 ms 2 //wa1 MAXN 太小了一开始用的10005; 3 //wa2 没判断素数 4 //wa3 分解质因子用的小于n 5 #include 6 #include 7 const int MAXN = 1000...
分类:其他好文   时间:2014-05-25 14:52:12    阅读次数:168
LightOJ-1205 - Palindromic Numbers
A palindromic number or numeral palindrome is a 'symmetrical' number like 16461 that remains the same when its digits are reversed. In this problem you will be given two integers i j, you have to find...
分类:其他好文   时间:2014-05-25 07:41:08    阅读次数:253
动态规划,就是这样! CodeForces 433B - Kuriyama Mirai's Stones
Kuriyama Mirai has killed many monsters and got many (namely n) stones. She numbers the stones from 1 to n. The cost of the i-th stone is vi. Kuriyama Mirai wants to know something about these sto...
分类:其他好文   时间:2014-05-25 07:24:48    阅读次数:315
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!