1. 程式人生 > >LeetCode題解彙總(C++ Java Python,含題目翻譯)

LeetCode題解彙總(C++ Java Python,含題目翻譯)

題目難度分佈、面試頻率及使用的資料結構與演算法分析:

1 Two Sum

2 Median of Two Sorted Arrays

3 Longest Substring Without Repeating Characters

4 Add Two Numbers

5 Single Number

6 Reverse Integer

7 String to Integer (atoi)

8 Remove Nth Node From End of List

9 Remove Duplicates from Sorted Array

10 Remove Element

11 Search Insert Position

12 Unique Paths

13 Length of Last Word

14 Maximum Subarray

15 Rotate List

16 Unique Paths II

17 Add Binary

18 Sqrt(x)

19 Minimum Path Sum

20 Insertion Sort List

21 Linked List Cycle

22 Linked List Cycle II

23 Merge Two Sorted Lists

24 Evaluate Reverse Polish Notation

25 Max Points on a Line

26 Sort List

27 Binary Tree Preorder Traversal

28 3Sum

29 Climbing Stairs

30 Valid Parentheses

31 Pow(x, n)

32 Merge Sorted Array

33 Set Matrix Zeroes

34 Remove Duplicates from Sorted List

35 Same Tree

36 Unique Binary Search Trees

37 Plus One

38 Validate Binary Search Tree

39 Search in Rotated Sorted Array

40 Integer to Roman

41 Path Sum

42 Longest Common Prefix

43 Search for a Range

44 Implement strStr()

45 Generate Parentheses

        感謝閱讀,歡迎評論!