码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
93. Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135", return ["2 ...
分类:其他好文   时间:2016-12-03 08:04:41    阅读次数:151
Leetcode: Remove K Digits
Greedy + Stack: 用一个栈维护最后要留存下来的digits 需要注意的是:如果遍历到string的某个char, string后面的char数刚刚好能填满这个栈,那么即使这个char比栈顶还要小,也不出栈,直接入栈 最后要删除leading 0 用char[]实现栈,思路一样,要快很多 ...
分类:其他好文   时间:2016-12-03 02:19:40    阅读次数:170
python笔记常用模块
一.python中的string模块 string模块中的ascii_letterss是生成所有的大小写字母a-z,A-Z。dights是生成所有的数字0-9 代码: import string src_st = string.ascii_letters +string.digits#所有大小写字母 ...
分类:编程语言   时间:2016-11-29 21:49:22    阅读次数:182
2. 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 ... ...
分类:其他好文   时间:2016-11-26 14:59:51    阅读次数:133
Leetcode: Count Numbers with Unique Digits
Analysis: A number of unique digits is a number which is a combination of unrepeated digits. So, we can calculate the total number. for number with n ...
分类:其他好文   时间:2016-11-26 07:37:07    阅读次数:243
【转】ORACLE日期时间 等函数大全
转自:ORACLE日期时间函数大全 ORACLE日期时间函数大全 TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 ...
分类:数据库   时间:2016-11-25 14:17:10    阅读次数:235
DATE 日期格式
Oracle TO_DATE 日期格式 Oracle中TO_DATE格式2009-04-14 10:53TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 y ...
分类:其他好文   时间:2016-11-24 11:45:54    阅读次数:202
LeetCode 2. 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 ...
分类:其他好文   时间:2016-11-24 09:24:18    阅读次数:149
Leetcode-66 Plus One
#66. Plus One Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most signific ...
分类:其他好文   时间:2016-11-21 18:32:54    阅读次数:139
369. Plus One Linked List
Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significan ...
分类:其他好文   时间:2016-11-20 07:00:18    阅读次数:121
2164条   上一页 1 ... 83 84 85 86 87 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!