![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
StringBuilder
jizhi_de_wo
这个作者很懒,什么都没留下…
展开
-
ZigZag Conversion
public class Solution { public String convert(String s, int nRows) { int len = s.length();//len即为字符串长度 if(len<=nRows||nRows<=1) return s; //such condition can't form the zigzag rou转载 2015-02-04 23:46:43 · 302 阅读 · 0 评论 -
LeetCode Path Sum
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Solution { publi原创 2015-02-11 09:44:28 · 258 阅读 · 0 评论