- 博客(3)
- 收藏
- 关注
转载 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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人