- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 【LeetCode】226. Invert Binary Tree
Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1思路: 递归解决,倒置左子树,倒置右子树,交换左右子节点指针./** * Definition for a binary tree node. * struc
2017-05-03 17:48:16 389
原创 【Leetcode】167. Two Sum II - Input array is sorted
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers suc
2017-05-03 17:42:20 396
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人