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 c ...
分类:
其他好文 时间:
2017-02-18 22:54:29
阅读次数:
203
题目描述: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes ...
分类:
其他好文 时间:
2017-02-17 15:32:24
阅读次数:
161
ORACLE日期时间函数大全 TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 显示值:2007 Month: m ...
分类:
数据库 时间:
2017-02-13 22:05:57
阅读次数:
234
题意:给一个数字,每一次把它的最后一位拿到最前面,一直那样下去,分别求形成的数字小于,等于和大于原来数的个数。 SAM乱搞失败 当然要先变SS了 然后考虑每个后缀前长为n个字符,把它跟S比较就行了 如果用后缀家族的话复杂度要加上log,本题会TLE吧 求一个串S的每个后缀与另一个串T的最长公共前缀可 ...
分类:
其他好文 时间:
2017-02-13 20:08:30
阅读次数:
176
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here a ...
分类:
其他好文 时间:
2017-02-12 21:06:41
阅读次数:
209
F(x) Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description For a decimal number x with n digits (AnAn-1A ...
分类:
其他好文 时间:
2017-02-11 23:57:46
阅读次数:
380
题目描述: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. 样例 Given num = 38. The process is like: 3 + ...
分类:
其他好文 时间:
2017-02-11 17:01:17
阅读次数:
187
class Solution { public: vector<string> letterCombinations(string digits) { vector<string> res; if (digits.empty()) return res; string dict[] = {"abc" ...
分类:
其他好文 时间:
2017-02-08 23:13:50
阅读次数:
182
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2017-02-03 16:53:18
阅读次数:
152