- 博客(6)
- 收藏
- 关注
原创 [LeetCode]Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using ext
2014-07-22 17:29:26 190
原创 [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 and the nodes have the same value.
2014-07-22 16:32:24 241
原创 [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 leaf node.
2014-07-22 01:29:59 202
原创 [LeetCode]Linked List Cycle
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? s
2014-07-22 00:49:26 297 1
转载 [LeetCode]Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. Note: Recursive soluti
2014-07-22 00:30:59 335
原创 [LeetCode]Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
2014-07-19 19:58:48 267
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人