码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
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 it ...
分类:其他好文   时间:2014-08-05 00:51:58    阅读次数:257
487--3279 UVA 755 其实有三种解法
487-3279  Businesses like to have memorable telephone numbers. One way to make a telephone number memorableis to have it spell a memorable word or phrase. For example, yo...
分类:其他好文   时间:2014-08-04 21:41:34    阅读次数:395
ASCII table and description .
ASCII table and descriptionASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII cod...
分类:其他好文   时间:2014-08-04 17:31:17    阅读次数:336
SPOJ BALNUM Balanced Numbers 状压+数位DP
一开始想了一个用二进制状压的方法,发现空间需要的太大,光光memset都要超时 = = 其实不用每次都memset也可以用三进制,一开始直接打表出所有的状态转移就好#include #include #include #include #include #include #include #incl...
分类:其他好文   时间:2014-08-04 17:10:47    阅读次数:259
shell脚本中执行mysql语句的方法
方法一:使用文件标签EOF重定向的方法的:#!/bin/bash user=root pass=123456 db=mysql tablename=user mysql-s--line-numbers-f-u$user-p$pass-D$db--delimiter=";"-E< --SELECThost,userfrom$tablenameorderby1; SELECThost,userfrom$tablenameorderby1; quit EOF优点:sql..
分类:数据库   时间:2014-08-04 14:41:58    阅读次数:234
USACO Section 2.2 Runaround Numbers
/* ID: lucien23 PROG: runround LANG: C++ */ #include #include #include using namespace std; int main() { ifstream infile("runround.in"); ofstream outfile("runround.out"); if(!infile || !outfil...
分类:其他好文   时间:2014-08-04 14:22:27    阅读次数:173
Multiply Strings leetcode java
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-....
分类:编程语言   时间:2014-08-04 13:58:57    阅读次数:285
Palindrome Number leetcode java
题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes....
分类:编程语言   时间:2014-08-04 04:09:56    阅读次数:339
uva 11610 Reverse Prime
Problem FReverse PrimeInput:Standard InputOutput:Standard OutputThere are a few 7 digit positive numbers whose reverse number is a prime number and le...
分类:其他好文   时间:2014-08-03 23:07:36    阅读次数:469
[LeetCode] Triangle('Bottom-up' DP)
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:其他好文   时间:2014-08-03 22:59:56    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!