Skip to content

Commit 73cabe3

Browse files
committed
reorder repo
1 parent b668f2d commit 73cabe3

38 files changed

+76
-57
lines changed

README-EN.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pattern Summary for Algorithm Problems
22

3-
[![](https://img.shields.io/badge/LeetCode-Solution-yellow?logo=leetcode)](https://github.com/zdong1995/LeetCode-Solution-Well-Explained) [![](https://img.shields.io/badge/Algo-Interview-blue?&logo=github)](https://github.com/zdong1995/Algorithm-Interview) ![java](https://img.shields.io/badge/Language-Java-orange?logo=java) ![Build](https://github.com/zdong1995/Algorithm-Interview/workflows/Build/badge.svg) [![](https://img.shields.io/badge/Github-zdong1995-blue?style=social&logo=github)](https://github.com/zdong1995/)
3+
[![](https://img.shields.io/badge/LeetCode-Solution-yellow?logo=leetcode)](https://github.com/zdong1995/LeetCode-Solution-Well-Explained) [![](https://img.shields.io/badge/Algo-Pattern-blue?&logo=github)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems) ![java](https://img.shields.io/badge/Language-Java-orange?logo=java) ![Build](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems/workflows/Build/badge.svg) [![](https://img.shields.io/badge/Github-zdong1995-blue?style=social&logo=github)](https://github.com/zdong1995/)
44

55
My summary of patterns for algorithm questions, based on similarities of techniques we used to solve the problem, with detailed beginner-friendly tutorial of Data Structure and Algorithm.
66

@@ -19,22 +19,20 @@ This repo will be updated as following parts:
1919

2020
### Table of Contents
2121

22-
* [Fundamental](https://github.com/zdong1995/Algorithm-Interview#fundamental)
23-
* [Recursion](https://github.com/zdong1995/Algorithm-Interview#recursion)
24-
* [Two Pointers](https://github.com/zdong1995/Algorithm-Interview#two-pointers)
25-
* [Sorting](https://github.com/zdong1995/Algorithm-Interview#sorting)
26-
* [Breadth First Search \(BFS\)](https://github.com/zdong1995/Algorithm-Interview#bfs)
27-
* [Depth First Search \(DFS\)](https://github.com/zdong1995/Algorithm-Interview#dfs)
28-
* [Dynamic Programming \(DP\)](https://github.com/zdong1995/Algorithm-Interview#dp)
29-
* [Popular Problems](https://github.com/zdong1995/Algorithm-Interview#popular)
22+
* [Fundamental](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#fundamental)
23+
* [Recursion](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#recursion)
24+
* [Two Pointers](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#two-pointers)
25+
* [Sorting](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#sorting)
26+
* [Breadth First Search \(BFS\)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#bfs)
27+
* [Depth First Search \(DFS\)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#dfs)
28+
* [Dynamic Programming \(DP\)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#dp)
29+
* [Popular Problems](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#popular)
3030

3131
Popular interview algorithm problems summarized by different patterns.
3232

3333
### Fundamental
3434

35-
* [ ] Introduction to Algorithms in Interview
36-
* [ ] Summary of Data Structure
37-
* [ ] Iterative in LinkedList
35+
* [x] Iterative in LinkedList: [Code](src/main/java/algorithm/basic/iterative)
3836
* [ ] Binary Search
3937

4038
### Recursion
@@ -46,7 +44,7 @@ Popular interview algorithm problems summarized by different patterns.
4644

4745
### Two Pointers
4846

49-
* [x] Two Sum Pattern: [Code](src/main/java/algorithm/array/twosum)
47+
* [x] Two Sum Pattern: [Code](src/main/java/algorithm/pointers/twosum)
5048
* [ ] Slow-Fast Pointers
5149
* [ ] K-way Merge
5250
* [ ] Deduplication

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 零基础算法面试指南
2-
[![](https://img.shields.io/badge/LeetCode-Solution-yellow?logo=leetcode)](https://github.com/zdong1995/LeetCode-Solution-Well-Explained) [![](https://img.shields.io/badge/Algo-Interview-blue?&logo=github)](https://github.com/zdong1995/Algorithm-Interview) ![java](https://img.shields.io/badge/Language-Java-orange?logo=java) ![Build](https://github.com/zdong1995/Algorithm-Interview/workflows/Build/badge.svg) [![](https://img.shields.io/badge/Github-zdong1995-blue?style=social&logo=github)](https://github.com/zdong1995/)
2+
[![](https://img.shields.io/badge/LeetCode-Solution-yellow?logo=leetcode)](https://github.com/zdong1995/LeetCode-Solution-Well-Explained) [![](https://img.shields.io/badge/Algo-Pattern-blue?&logo=github)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems) ![java](https://img.shields.io/badge/Language-Java-orange?logo=java) ![Build](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems/workflows/Build/badge.svg) [![](https://img.shields.io/badge/Github-zdong1995-blue?style=social&logo=github)](https://github.com/zdong1995/)
33

44
[English Version](./README-EN.md)
55

@@ -12,11 +12,22 @@
1212
- 第二部分:掌握搜索算法,宽度优先,深度优先,到记忆存储,剪枝优化,入门动态规划。
1313
- 第三部分:高频面试题目分析,复杂题目讲解,高级数据结构等。
1414

15+
### 目录
16+
17+
1. [基础数据结构与算法](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#fundamental)
18+
2. [优雅重要的递归思维](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#recursion)
19+
3. [巧妙高效的双指针](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#two-pointers)
20+
4. [轻松手写排序算法](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#sorting)
21+
5. [宽度优先搜索 \(BFS\)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#bfs)
22+
6. [深度优先搜索 \(DFS\)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#dfs)
23+
7. [数学归纳法与动态规划 \(DP\)](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#dp)
24+
8. [高频题目类型讲解](https://github.com/zdong1995/Pattern-Summary-for-Algorithm-Problems#popular)
25+
1526
### 1. 基础数据结构与算法
1627

1728
- [x] [半年零基础到 LeetCode 300 题,我的算法学习方法论](https://dongxiaoran.com/algo/basic/intro/)
1829
- [x] [当我们谈论刷题时,到底在刷什么](https://dongxiaoran.com/algo/basic/how/)
19-
- [x] [一题顶四题,一道题掌握 LinkedList 的 Iterative](https://dongxiaoran.com/algo/basic/iterativelist/)
30+
- [x] [一题顶四题,一道题掌握 LinkedList 的 Iterative](https://dongxiaoran.com/algo/basic/iterativelist/): [Code](src/main/java/algorithm/basic/iterative)
2031

2132
- [ ] Binary Search
2233

@@ -32,7 +43,7 @@
3243

3344
### 3. 巧妙高效的双指针
3445

35-
- [x] Two Sum Pattern: [Code](src/main/java/algorithm/array/twosum)
46+
- [x] Two Sum Pattern: [Code](src/main/java/algorithm/pointers/twosum)
3647
- [ ] Slow-Fast Pointers
3748

3849
- [ ] K-way Merge
@@ -51,7 +62,7 @@
5162

5263
- [ ] Quick Selection
5364

54-
- [ ] Comparasion-based Sort
65+
- [ ] Comparison-based Sort
5566

5667
### 5. 宽度优先搜索
5768

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package algorithm.basic.iterative;
2+
3+
public class FindMiddleOfList {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package algorithm.basic.iterative;
2+
3+
public class MergeTwoSortedList {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package algorithm.basic.iterative;
2+
3+
public class ReorderList {
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package algorithm.basic.iterative;
2+
3+
public class ReverseLinkedList {
4+
}

src/main/java/algorithm/linkedlist/merge/MergeSortLists.java

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/main/java/algorithm/linkedlist/merge/MergeKSortedList.java renamed to src/main/java/algorithm/pointers/merge/MergeKSortedList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package algorithm.linkedlist.merge;
1+
package algorithm.pointers.merge;
22

33
import datastrcture.ListNode;
44
import java.util.*;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package algorithm.pointers.merge;
2+
3+
public class MergeSortLists {
4+
}

src/main/java/algorithm/linkedlist/merge/MergeTwoSortedList.java renamed to src/main/java/algorithm/pointers/merge/MergeTwoSortedList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package algorithm.linkedlist.merge;
1+
package algorithm.pointers.merge;
22

33
import datastrcture.ListNode;
44

0 commit comments

Comments
 (0)