- 博客(5)
- 收藏
- 关注
原创 leetcode: Remove Linked List Elements(java)
Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4 --> 5 Credits: Special than
2015-04-24 14:42:59 800
原创 leetcode: Happy Number
题意: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of th
2015-04-22 12:38:04 1068
原创 leetcode:Path Sum II
又一道DFS题,题意如下: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5
2015-04-08 01:51:55 525
原创 leetcode:Populating Next Right Pointers in Each Node
一道DFS的题目,题意如下: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 1
2015-04-08 00:55:29 513
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人