- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode:237. Delete Node in a Linked List(JAVA)
【问题描述】 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 -> 3 -> 4 and you are given the third nod
2016-02-29 17:05:41 214
原创 Leetcode: Invert Binary Tree(JAVA)
【问题描述】 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 -> 3 -> 4 and you are given the third nod
2016-02-29 17:01:41 271
原创 Leetcode:104. Maximum Depth of Binary Tree(JAVA)
【题目描述】 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. Subscribe to see whi
2016-02-28 15:38:40 505
原创 Leetcode:258. Add Digits(JAVA)
【问题描述】Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 ha
2016-02-28 15:09:09 419
原创 Leetcode: 292. Nim Game (Java)
【问题描述】You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will
2016-02-28 14:29:40 358
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人