From 64844c34c7964937f0bdab2f332c745e0ce217b1 Mon Sep 17 00:00:00 2001 From: LouisFonda Date: Fri, 6 Dec 2024 02:09:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0c=E5=92=8Cgo?= =?UTF-8?q?=E7=9A=84=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 11 +++++++++++ README.md | 2 ++ c_solutions/README.md | 23 +++++++++++++++++++++++ c_solutions/exercises/.gitkeep | 0 c_solutions/leetcode/easy/.gitkeep | 0 c_solutions/leetcode/hard/.gitkeep | 0 c_solutions/leetcode/medium/.gitkeep | 0 c_solutions/sort/.gitkeep | 0 go_solutions/README.md | 22 ++++++++++++++++++++++ go_solutions/leetcode/esay/.gitkeep | 0 go_solutions/leetcode/hard/.gitkeep | 0 go_solutions/leetcode/medium/.gitkeep | 0 12 files changed, 58 insertions(+) create mode 100644 c_solutions/README.md create mode 100644 c_solutions/exercises/.gitkeep create mode 100644 c_solutions/leetcode/easy/.gitkeep create mode 100644 c_solutions/leetcode/hard/.gitkeep create mode 100644 c_solutions/leetcode/medium/.gitkeep create mode 100644 c_solutions/sort/.gitkeep create mode 100644 go_solutions/README.md create mode 100644 go_solutions/leetcode/esay/.gitkeep create mode 100644 go_solutions/leetcode/hard/.gitkeep create mode 100644 go_solutions/leetcode/medium/.gitkeep 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