leetcode 目录--更新....

来源:互联网 发布:aaa软件教育学院 编辑:程序博客网 时间:2024/04/28 18:52

 //注:很多代码未加入,内存分配是否成功的判断!

//二维数组分配问题需注意,leetcode 可以接受变量的a[m][n],自己实现需,int **a = new int [m];for(){a[i] = new int[n]} -- 释放类似

1、String to Integer (atoi)

2、 Populating Next Right Pointers in Each Node

3、Sort List

4、Insertion Sort List

5、Two Sum

6、Remove Duplicates from Sorted Array

7、LRU Cache

8、Sqrt(x)

9、Pow(x, n)

10、Remove Duplicates from Sorted Array II

11、Single Number

12、Single Number II

13、Valid Palindrome

14、Evaluate Reverse Polish Notation

15、Copy List with Random Pointer

16、Remove Duplicates from Sorted List

17、Candy

18、Add Binary

19、Valid Number

20、Valid Parentheses

21、Word Break

22、Triangle

23、Merge Two Sorted Lists

24、Gas Station

25、Palindrome Partitioning II

26、Interleaving String

27、Implement strStr()

28、Remove Duplicates from Sorted List II

29、Search in Rotated Sorted Array

30、Search in Rotated Sorted Array II

31、Permutations

32、Permutations II

33、Subsets

34、Subsets II

35、Restore IP Addresses

36、Regular Expression Matching

37、Letter Combinations of a Phone Number

38、Palindrome Partitioning

39、Maximum Subarray

40、Reverse Words in a String

41、Unique Paths

42、Unique Paths II

43、N-Queens

44、N-Queens II

45、Binary Tree Level Order Traversal

46、Combination Sum

47、Combination Sum II

48、Combinations

49、Generate Parentheses

50、 Jump Game

51、 Jump Game II

52、 Best Time to Buy and Sell Stock

53、Best Time to Buy and Sell Stock II

54、Best Time to Buy and Sell Stock III

55、Longest Substring Without Repeating Characters

56、Container With Most Water

57、Search for a Range

58、Search Insert Position

59、Search a 2D Matrix

60、Triangle

61、Largest Rectangle in Histogram 

62、Edit Distance

63、Decode Ways

64、Distinct Subsequences

65、3Sum

66、3Sum Closest

67、4Sum

68、Longest Palindromic Substring

69、Count and Say

70、Anagrams

71、Simplify Path

72、Length of Last Word



//更新 ...