[LeetCode] 226 Invert a binary tree.

Invert a binary tree.      4    /   \   2     7  / \   / \ 1   3 6   9 to      4    /   \   7     2  / \   / \ 9   6 3   1 Trivia: T...

2015-09-30 12:14:47

阅读数:209

评论数:0

[LeetCode] Move Zeroes

Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example,...

2015-09-30 11:09:16

阅读数:190

评论数:0

[LeetCode] Same Tree

Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical...

2015-09-30 01:31:40

阅读数:197

评论数:0

[LeetCode] Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -...

2015-09-30 00:23:55

阅读数:230

评论数:0

[LeetCode] Maximum Depth of Binary Tree

Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest ...

2015-09-29 23:41:50

阅读数:212

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭