1、题目Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 2...
分类:
其他好文 时间:
2014-12-21 19:18:21
阅读次数:
180
增加一列:alter table bf_agt_dep_acct_sap_sub add column cust_age varchar(10) not null;改变属性:alter table bf_agt_dep_acct_sap_sub modify cust_age int;设置一列的值:...
分类:
数据库 时间:
2014-12-21 17:53:18
阅读次数:
177
leetcode新題,Excel Sheet Column Title,本質是進制轉化,難度easy。excel中的序是这样排的:A~Z,AA~ZZ,AAA~ZZZ.......
本质是进制转换,将n转化为26进制,转化过程如下(括号里的是26进制数):
1->(1)->A
2->(2)->B
...
26->(10)->Z
27->(11)->AA
28->(12)->AB
.....
52->(20)->AZ
53->(21)->BA
因此可以将n转化为26进制表示的数,然后对每一位的数,根据『1->...
分类:
其他好文 时间:
2014-12-21 14:01:36
阅读次数:
386
class Solution {public: string convertToTitle(int n) { if (n 0) { n--; res = (char)(n % 26 + 'A') + res; n ...
分类:
其他好文 时间:
2014-12-21 13:56:49
阅读次数:
219
Excel Sheet Column TitleGiven a non-zero positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A ...
分类:
其他好文 时间:
2014-12-21 00:44:20
阅读次数:
284
就是个26进制class Solution {public: string convertToTitle(int n) { string ans = ""; while(n) { ans = string(1, ((n - 1) % 26 + ...
分类:
其他好文 时间:
2014-12-20 23:24:54
阅读次数:
194
Excel Sheet Column TitleGiven a non-zero positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A ...
分类:
其他好文 时间:
2014-12-20 22:07:17
阅读次数:
233
Excel Sheet Column TitleGiven a non-zero positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A ...
分类:
其他好文 时间:
2014-12-20 19:38:27
阅读次数:
242
1、错误描述
freemarker.core.InvalidReferenceException:on line 68,column 18 in ftl/inc/incPro.ftl p.mainSelect not found
2、错误原因
由于宏定义的组件已经删除,但是在页面中还是运用了该组件
3、解决办法
删除已经没有定义宏的组件,防...
分类:
其他好文 时间:
2014-12-20 15:37:03
阅读次数:
157
1.一般的insert 操作。 使用语法insert into table_name[(column[,column...])] values (value[,value…])的insert语句,每条insert只能插入到目标表中一条指定的数据。如果有很多行需要插入,而且这些数据来源于别 的表...
分类:
数据库 时间:
2014-12-20 11:32:47
阅读次数:
572