LeetCode Java解题集合

LeetCode题使用Java进行解题，题意分析，思路分析。

1 已关注
29篇博文
• [Java]Leetcode236 Lowest Common Ancestor of a Binary Tree

求二叉树的公共父结点

2015-08-23 08:58
855
• [Java]LeetCode235 Lowest Common Ancestor of a Binary Search Tree

[Java]LeetCode235 Lowest Common Ancestor of a Binary Search Tree

2015-08-22 21:31
738
• Remove Duplicates from Sorted List II

LeetCodeOJ82 Remove Duplicates from Sorted List II

2015-01-23 08:46
529
• LeetCode61Rotate List

Given a list, rotate the list to the right by k places, where k is non-negative.

2015-02-01 20:59
402
• LeetCode146 LRU Cache

Design and implement a data structure for Least Recently Used (LRU) cache. It should support the fol...

2015-02-14 20:17
399
• LeetCode 147 Insertion Sort List

LeetCode 147 Insertion Sort List

2015-03-09 10:21
517
• LeetCode94 Binary Tree Inorder Traversal[Java]

LeetCode94 Binary Tree Inorder Traversal[Java]

2015-03-20 18:57
446
• LeetCode114 Flatten Binary Tree to Linked List

LeetCode114 Flatten Binary Tree to Linked List

2015-03-26 11:04
433
• [JAVA]LeetCode105 Construct Binary Tree from Preorder and Inorder Traversal

根据前序遍历和中序遍历，构建二叉树。假设树中不存在相同的节点

2015-03-29 10:39
740
• [JAVA]LeetCode106 Construct Binary Tree from Inorder and Postorder Traversal

根据中序和后序建二叉树

2015-03-31 09:38
653
• LeetCode125 Sum Root to Leaf Numbers

LeetCode125 Sum Root to Leaf Numbers

2015-04-01 08:53
475
• [Java]LeetCode96 Unique Binary Search Trees

[Java]LeetCode96 Unique Binary Search Trees

2015-04-03 10:09
417
• [JAVA]LeetCode199 Binary Tree Right Side View

Given a binary tree, imagine yourself standing on the right side of it, return the values of the nod...

2015-04-09 19:41
771
• [Java]leetcode173 Binary Search Tree Iterator

Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the ro...

2015-04-10 08:52
634
• [Java]leetcode6 ZigZag Conversion

[Java]leetcode ZigZag Conversion

2015-04-12 11:17
644
• [JAVA]LeetCode8 String to Integer (atoi)

Implement atoi to convert a string to an integer.

2015-04-15 16:09
961
• [Java]Leetcode165 Compare Version Numbers

[Java]Leetcode165 Compare Version Numbers

2015-04-16 14:03
703
• [Java]Leetcode14 Longest Common Prefix

Leetcode14 Longest Common Prefix

2015-04-17 16:02
356
• [Java]LeetCode49 Anagrams

[Java]LeetCode49 Anagrams

2015-04-22 10:23
789
• [Java]LeetCode22 Generate Parentheses

[Java]LeetCode22 Generate Parentheses

2015-04-23 09:55
634