# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/zigzag-conversion/The string "PAYPALISHIRING" is written ...
分类:
编程语言 时间:
2015-01-13 21:10:46
阅读次数:
416
题目要求:
The string "PAYPALISHIRING" is written in a zigzag pattern on a given
number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A...
分类:
其他好文 时间:
2015-01-13 19:57:52
阅读次数:
141
eclipse 编译报错:Conversion to Dalvik format failed with error 1
错误信息:
rouble processing "java/io/EOFException.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
...
分类:
其他好文 时间:
2015-01-13 15:56:40
阅读次数:
171
昨天调试一个表值函数,结果出现了这个错误。mplicit conversion of varchar value to varchar cannot be performed because the collation of the value is unresolved due to a coll...
分类:
数据库 时间:
2015-01-13 10:14:58
阅读次数:
162
启动PL/SQL Developer 报字符编码不一致错误Database character set (AL32UTF8) and Client character set (ZHS16GBK) are different.Character set conversion may cause un...
分类:
数据库 时间:
2015-01-09 13:56:53
阅读次数:
199
题目链接:
找规律的一道题,row往前进2步的话,如果投影在zigzag的路径上,则是走了一个V字形,也就是说每一行的相邻2步,都是走了同样的投影距离。然后主要抓到步数计算的规律即可。
*注意step为0的情况,这时候要pick up最大的步长继续走。
*注意row为1行的情况,最早判断,避免死循环,因为步长是0。
*一直尝试po讲解照片,但是无论如何都显示不出来。有空搞定了传张照...
分类:
其他好文 时间:
2015-01-07 18:55:23
阅读次数:
133
1 class Solution { 2 public: 3 string convert(string s, int nRows) { 4 string a=""; 5 int len=s.length(); 6 if(lennRows && r...
分类:
其他好文 时间:
2015-01-03 23:48:25
阅读次数:
309
https://oj.leetcode.com/problems/zigzag-conversion/http://fisherlei.blogspot.com/2013/01/leetcode-zigzag-conversion.htmlpublicclassSolution{
publicStringconvert(Strings,intnRows){
//SolutionA:
returnconvert_NoNewMatrix(s,nRows);
}
////////////////////////..
分类:
其他好文 时间:
2015-01-02 16:13:47
阅读次数:
140
Conversions
Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1676 Accepted Submission(s): 988
Problem Description
Conversion between t...
分类:
其他好文 时间:
2015-01-01 13:43:02
阅读次数:
160
在我的Eclipse Android app中出现了如下的错误
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Lorg/xmlpull/v1/XmlPullParser;
....
Conversion to Dalvik format failed with error...
分类:
编程语言 时间:
2015-01-01 10:07:33
阅读次数:
198