LeetCode题解汇总(C++ Java Python,含题目翻译)

更多代码请见我的github:https://github.com/lilong-dream/

本文同时发布在我的个人网站,欢迎访问:http://www.lilongdream.com/2014/04/08/30.html

LeetCode题目(含AC Rates):http://oj.leetcode.com/problems/

题目难度分布、面试频率及使用的数据结构与算法分析:

http://blog.csdn.net/lilong_dream/article/details/23191423

1 Two Sum

http://blog.csdn.net/lilong_dream/article/details/19298357

2 Median of Two Sorted Arrays

http://blog.csdn.net/lilong_dream/article/details/19355465

3 Longest Substring Without Repeating Characters

http://blog.csdn.net/lilong_dream/article/details/19431417

4 Add Two Numbers

http://blog.csdn.net/lilong_dream/article/details/19544995

5 Single Number

http://blog.csdn.net/lilong_dream/article/details/19556493

6 Reverse Integer

http://blog.csdn.net/lilong_dream/article/details/19674929

7 String to Integer (atoi)

http://blog.csdn.net/lilong_dream/article/details/19677643

8 Remove Nth Node From End of List

http://blog.csdn.net/lilong_dream/article/details/19753021

9 Remove Duplicates from Sorted Array

http://blog.csdn.net/lilong_dream/article/details/19757047

10 Remove Element

http://blog.csdn.net/lilong_dream/article/details/19759709

11 Search Insert Position

http://blog.csdn.net/lilong_dream/article/details/19768455

12 Unique Paths

http://blog.csdn.net/lilong_dream/article/details/19771225

13 Length of Last Word

http://blog.csdn.net/lilong_dream/article/details/19840937

14 Maximum Subarray

http://blog.csdn.net/lilong_dream/article/details/19846683

15 Rotate List

http://blog.csdn.net/lilong_dream/article/details/19848277

16 Unique Paths II

http://blog.csdn.net/lilong_dream/article/details/19931301

17 Add Binary

http://blog.csdn.net/lilong_dream/article/details/19995465

18 Sqrt(x)

http://blog.csdn.net/lilong_dream/article/details/20002071

19 Minimum Path Sum

http://blog.csdn.net/lilong_dream/article/details/20003925

20 Insertion Sort List

http://blog.csdn.net/lilong_dream/article/details/20070531

21 Linked List Cycle

http://blog.csdn.net/lilong_dream/article/details/20073231

22 Linked List Cycle II

http://blog.csdn.net/lilong_dream/article/details/20074373

23 Merge Two Sorted Lists

http://blog.csdn.net/lilong_dream/article/details/20075857

24 Evaluate Reverse Polish Notation

http://blog.csdn.net/lilong_dream/article/details/20204273

25 Max Points on a Line

http://blog.csdn.net/lilong_dream/article/details/20283023

26 Sort List

http://blog.csdn.net/lilong_dream/article/details/20284389

27 Binary Tree Preorder Traversal

http://blog.csdn.net/lilong_dream/article/details/20306491

28 3Sum

http://blog.csdn.net/lilong_dream/article/details/21645437

29 Climbing Stairs

http://blog.csdn.net/lilong_dream/article/details/21650907

30 Valid Parentheses

http://blog.csdn.net/lilong_dream/article/details/21694751

31 Pow(x, n)

http://blog.csdn.net/lilong_dream/article/details/21701775

32 Merge Sorted Array

http://blog.csdn.net/lilong_dream/article/details/22677537

33 Set Matrix Zeroes

http://blog.csdn.net/lilong_dream/article/details/22744137

34 Remove Duplicates from Sorted List

http://blog.csdn.net/lilong_dream/article/details/22752179

35 Same Tree

http://blog.csdn.net/lilong_dream/article/details/22753227

36 Unique Binary Search Trees

http://blog.csdn.net/lilong_dream/article/details/22754969

37 Plus One

http://blog.csdn.net/lilong_dream/article/details/22777347

38 Validate Binary Search Tree

http://blog.csdn.net/lilong_dream/article/details/22780563

39 Search in Rotated Sorted Array

http://blog.csdn.net/lilong_dream/article/details/22864861

40 Integer to Roman

http://blog.csdn.net/lilong_dream/article/details/22869803

41 Path Sum

http://blog.csdn.net/lilong_dream/article/details/22875143

42 Longest Common Prefix

http://blog.csdn.net/lilong_dream/article/details/22886331

43 Search for a Range

http://blog.csdn.net/lilong_dream/article/details/22893675

44 Implement strStr()

http://blog.csdn.net/lilong_dream/article/details/23655843

45 Generate Parentheses

http://blog.csdn.net/lilong_dream/article/details/23917967

        感谢阅读,欢迎评论!

你可能感兴趣的:(LeetCode)