You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16
Original file line number
Diff line number
Diff line change
@@ -19,25 +19,25 @@ LeetCode solution (C++ and Python)
19
19
# Leetcode Hot & Top
20
20
| Leetcode | Solution | Basic idea |
21
21
| --- | --- | --- |
22
-
| 001 [Two Sum](https://leetcode-cn.com/problems/two-sum/) | [C++](https://github.com/codename1995/leetcodehub/blob/master/cpp/1_Two_Sum/1_Two_Sum.cpp), [Python](https://github.com/codename1995/leetcodehub/blob/master/python/1.two_sum.py) | 1. Hashtable store the index
22
+
| 001 [Two Sum](https://leetcode-cn.com/problems/two-sum/) | [C++](https://github.com/codename1995/leetcodehub/blob/master/cpp/001_Two_Sum/001_Two_Sum.cpp), [Python](https://github.com/codename1995/leetcodehub/blob/master/python/1.two_sum.py) | 1. Hashtable store the index
23
23
| 002 [Add Two Numbers](https://leetcode-cn.com/problems/add-two-numbers/)|[C++](https://github.com/codename1995/leetcodehub/blob/master/cpp/002_Add_Two_Numbers/002_Add_Two_Numbers.cpp)|
| 019 [Remove Nth Node From End of List](https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/)|[C++](https://github.com/codename1995/LeetCodeHub/blob/master/cpp/19_Remove_Nth_Node_from_End_of_List/19_Remove_Nth_Node_from_End_of_List.cpp)|
28
-
| 021 [Merge Two Sorted Lists](https://leetcode-cn.com/problems/merge-two-sorted-lists/)|[C++](https://github.com/codename1995/LeetCodeHub/blob/master/cpp/21_Merge_Two_Sorted_Lists/21_Merge_Two_Sorted_Lists.cpp)|
| 019 [Remove Nth Node From End of List](https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/)|[C++](https://github.com/codename1995/LeetCodeHub/blob/master/cpp/019_Remove_Nth_Node_from_End_of_List/019_Remove_Nth_Node_from_End_of_List.cpp)|
28
+
| 021 [Merge Two Sorted Lists](https://leetcode-cn.com/problems/merge-two-sorted-lists/)|[C++](https://github.com/codename1995/LeetCodeHub/blob/master/cpp/021_Merge_Two_Sorted_Lists/021_Merge_Two_Sorted_Lists.cpp)|
034 [Find First and Last Position of Element in Sorted Array](https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/)| [C++](https://github.com/codename1995/leetcodehub/blob/master/cpp/34_Find_First_And_Last_Position_Of_Element_In_Sorted_Array/34_Find_First_And_Last_Position_Of_Element_In_Sorted_Array.cpp)| 1. 两次二分,分别返回 不大于/大于 target的第一个位置。需要注意两次二分的细节差异和确定返回位置是否在数组范围内。
034 [Find First and Last Position of Element in Sorted Array](https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/)| [C++](https://github.com/codename1995/leetcodehub/blob/master/cpp/034_Find_First_And_Last_Position_Of_Element_In_Sorted_Array/034_Find_First_And_Last_Position_Of_Element_In_Sorted_Array.cpp)| 1. 两次二分,分别返回 不大于/大于 target的第一个位置。需要注意两次二分的细节差异和确定返回位置是否在数组范围内。
| 102 [Binary Tree Level Order Traversal](https://leetcode-cn.com/problems/binary-tree-level-order-traversal/)| [C++](https://github.com/codename1995/LeetCodeHub/blob/master/cpp/102_Binary_Tree_Level_Order_Traversal/102_Binary_Tree_Level_Order_Traversal.cpp)| 1. 配合队列做呗,加两个计数器变量,一个比较队列是否输出了这一层的所有结点,一个用于记录下一层共有多少结点
43
43
| 103 [Binary Tree Zigzag Level Order Traversal](https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/) | [C++](https://github.com/codename1995/LeetCodeHub/blob/master/cpp/103_Binary_Tree_Zigzag_Level_Order_Traversal/103_Binary_Tree_Zigzag_Level_Order_Traversal.cpp) | 1. 同102
0 commit comments