Sql Server 中一个非常强大的日期格式化函数Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CON...
分类:
数据库 时间:
2014-07-23 15:19:16
阅读次数:
511
Nothing to hard to think. Just take care of boundary conditions.class Solution {public: string convert(string s, int nRows) { if(s.empty() |...
分类:
其他好文 时间:
2014-07-23 15:04:36
阅读次数:
227
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.题解:开始想到的方法比较偷懒,直接遍历一遍数组,把每个ListNode对应的值放到...
分类:
其他好文 时间:
2014-07-22 22:45:13
阅读次数:
271
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.以下为补充知识,百度到的罗马数字写法:个位数举例I, 1 】II, 2】 III, 3】...
分类:
其他好文 时间:
2014-07-22 00:04:34
阅读次数:
190
1.Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
2.Given a singly linked list where elements are sorted in ascending order, convert it to a heig...
分类:
其他好文 时间:
2014-07-21 23:45:53
阅读次数:
264
在实际编码过程中,有时候会出现装箱和拆箱操作。下面就类分别认识一下:需要注意的是,类型转换和这个是不同的。Convert方法并没有发生装箱和拆箱操作,而是类型转换,包括int.parse等等。装箱,是把值类型拷贝了一个副本放在堆内存中。拆箱,在引用类型直接找到值类型存储的位置(Person对象是引用...
分类:
其他好文 时间:
2014-07-21 14:24:30
阅读次数:
258
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.题解:基本的罗马字符和数字对应如下表所示:罗马字符数字I1V5X10L50C100D50...
分类:
其他好文 时间:
2014-07-21 10:05:16
阅读次数:
286
0x00本文属于随笔, 仅供作者学习记录.0x01 批量修改图片大小:root@host:~/$ find ./ -name '*.jpg' -exec convert -resize 220X520! {} {} \;备注: 上述命令中,find 路径 -name 匹配.jpg后缀的文件-exec...
分类:
系统相关 时间:
2014-07-21 09:35:06
阅读次数:
334
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2014-07-21 08:36:32
阅读次数:
208
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; ...
分类:
其他好文 时间:
2014-07-21 00:11:12
阅读次数:
254