diff --git a/.gitignore b/.gitignore index fcd9a9e..999289d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,14 @@ yarn-error.log npm-debug.log yarn-debug.log* yarn-error.log* + +# C and Go compiled files +*.exe +*.out +*.o +*.a +*.so +*.dylib +*.dll +*.obj +*.exe diff --git a/README.md b/README.md index 6fc5b40..ebc9fe2 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ - `list/`: 链表相关数据结构目录 - `tree/`: 树相关数据结构目录 - `hash/`: 常用哈希工具函数目录 +- `c_solutions`: c 语言相关算法实现(详细请看 c_solutions/README.md) +- `go_solutions`: go 语言相关算法实现(详细请看 go_solutions/README.md) ## 排序算法 diff --git a/c_solutions/README.md b/c_solutions/README.md new file mode 100644 index 0000000..3434926 --- /dev/null +++ b/c_solutions/README.md @@ -0,0 +1,23 @@ +# c_solutions + +这个文件夹里面的内容用于存放 c 语言相关的代码,是一个独立的文件夹 + +## 目录 + +- [c_solutions] + - [目录](#目录) + - [介绍](#介绍) + - [目录结构](#目录结构) + +## 介绍 + +这个文件夹里面的所有内容都是 c 语言的算法实现。 + +## 目录结构 + +- `exercises/`: 练习题目 +- `sort/`: 排序算法相关目录 +- `leetcode/`: 力扣题解目录,按难度分类 + - `easy/`: 简单难度题目 + - `medium/`: 中等难度题目 + - `hard/`: 困难难度题目 diff --git a/c_solutions/exercises/.gitkeep b/c_solutions/exercises/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/c_solutions/leetcode/easy/.gitkeep b/c_solutions/leetcode/easy/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/c_solutions/leetcode/hard/.gitkeep b/c_solutions/leetcode/hard/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/c_solutions/leetcode/medium/.gitkeep b/c_solutions/leetcode/medium/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/c_solutions/sort/.gitkeep b/c_solutions/sort/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/go_solutions/README.md b/go_solutions/README.md new file mode 100644 index 0000000..ba2124c --- /dev/null +++ b/go_solutions/README.md @@ -0,0 +1,22 @@ +# go_solutions + +这个文件夹里面的内容用于存放 go 语言相关的代码,是一个独立的文件夹 + +## 目录 + +- [go_solutions] + - [目录](#目录) + - [介绍](#介绍) + - [目录结构](#目录结构) + +## 介绍 + +这个文件夹里面的所有内容都是 go 语言的算法实现。 + +## 目录结构 + +- `sort/`: 排序算法相关目录 +- `leetcode/`: 力扣题解目录,按难度分类 + - `easy/`: 简单难度题目 + - `medium/`: 中等难度题目 + - `hard/`: 困难难度题目 diff --git a/go_solutions/leetcode/esay/.gitkeep b/go_solutions/leetcode/esay/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/go_solutions/leetcode/hard/.gitkeep b/go_solutions/leetcode/hard/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/go_solutions/leetcode/medium/.gitkeep b/go_solutions/leetcode/medium/.gitkeep new file mode 100644 index 0000000..e69de29