![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
刷题
bingbushimou
这个作者很懒,什么都没留下…
展开
-
389 Find the Difference
public char findTheDifference(String s, String t) { char c = 0; for (int i = 0; i < s.length(); ++i) { c ^= s.charAt(i); } for (int i = 0; i < t.length(); ++i) { c ^= t.charAt(i); } return c原创 2017-03-05 04:28:49 · 138 阅读 · 0 评论 -
520Detect Capital
word.substring(1) 正则表达式?原创 2017-03-05 05:00:40 · 117 阅读 · 0 评论 -
404. Sum of Left Leaves
public int sumOfLeftLeaves(TreeNode root) { if(root == null) return 0; int ans = 0; if(root.left != null) { if(root.left.left == null && root.left.right == null) ans += root.left.v转载 2017-03-10 23:35:06 · 89 阅读 · 0 评论