An open API service indexing awesome lists of open source software.

https://github.com/autuanliu/code-storm2019

LeetCode2019
https://github.com/autuanliu/code-storm2019

leetcode-cpp practice-programming

Last synced: 8 months ago
JSON representation

LeetCode2019

Awesome Lists containing this project

README

          

# LeetCode2019

1. leetcode 代码练习
2. 剑指offer 练习题
3. 算法与数据结构
4. SQL

## 算法

### [排序算法](./CppScripts/sort)

```cpp
void max_heapifty(vector& nums, int start, int end); // 调整堆
void heap_sort(vector& nums); // 堆排序
void shell_sort(vector& nums); // 希尔排序
void select_sort(vector& nums); // 选择排序
void quick_sort_swap(vector& nums, int low, int high); // 快速排序-交换元素
void quick_sort(vector& nums, int low, int high); // 快速排序
int get_partition(vector& nums, int low, int high); // 快速排序获得分割点
int get_partition_swap(vector& nums, int low, int high); // 快速排序获得分割点-交换元素
void quick_sort_iteration(vector& nums, int low, int high); // 快速排序迭代版
void merge_sorted(vector& nums, int left, int mid, int right); // 合并两个有序数组
void merge_sorted_easy(vector& nums, int left, int mid, int right); // 化简版合并两个有序数组
void merge_sort(vector& nums, int left, int right); // 归并排序
void merge_sort_iteration(vector& nums, int left, int right); // 归并排序迭代版
void insert_sort(vector& nums); // 插入排序
void bubble_sort_backward(std::vector& nums); // 冒泡排序从后往前
void bubble_sort_forward(std::vector& nums); // 冒泡排序从前往后
```

### 数组输出

```cpp
template
void print_vector(vector& nums);

template
void print_matrix(vector>& matrix);
```

### [libtorch](./CppScripts/torch-x) 使用案例

1. Mnist [libtorch](https://pytorch.org/cppdocs/) C++ 版本

### Deep Learning 实现

1. [dropout](./algorithms/dropout.py)
2. [batchnorm](./algorithms/batchnorm.py)
3. [layernorm](./algorithms/layernorm.py)
4. [conv2d](./algorithms/conv2d.py)
5. [pool2d](./algorithms/pool2d.py)
6. [numpy 实现2层的全连接网络](./algorithms/fully2.py)

## 语言

1. C++
2. Python
3. bash
4. SQL

## 信息

```bash
(torch36) λ cloc .
408 text files.
408 unique files.
40 files ignored.

http://cloc.sourceforge.net v 1.64 T=0.95 s (413.7 files/s, 22707.3 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C++ 187 712 6643 5978
Python 168 719 3015 3743
C/C++ Header 5 33 13 192
Java 5 11 1 156
SQL 19 47 129 111
Bourne Shell 3 17 9 63
CMake 6 18 25 27
JSON 2 0 0 20
-------------------------------------------------------------------------------
SUM: 395 1557 9835 10290
-------------------------------------------------------------------------------
```

## Reference
1. [MisterBooo/LeetCodeAnimation: Demonstrate all the questions on LeetCode in the form of animation.(用动画的形式呈现解LeetCode题目的思路)](https://github.com/MisterBooo/LeetCodeAnimation)
2. [apachecn/awesome-algorithm: LeetCode, HackRank, 剑指offer, classic algorithm implementation](https://github.com/apachecn/awesome-algorithm)
3. [billryan/algorithm-exercise: Data Structure and Algorithm notes. 数据结构与算法/leetcode/lintcode题解/](https://github.com/billryan/algorithm-exercise)
4. [csujedihy/lc-all-solutions: My own leetcode solutions by python](https://github.com/csujedihy/lc-all-solutions)
5. [HuberTRoy/leetCode: :pencil2: 算法相关知识储备 LeetCode with Python](https://github.com/HuberTRoy/leetCode)
6. [xuelangZF/LeetCode: 正确的姿势,学习的态度来刷 LeetCode:高效的代码、简洁的注释、精炼的总结。](https://github.com/xuelangZF/LeetCode)
7. [zhedahht/CodingInterviewChinese2: 《剑指Offer》第二版源代码](https://github.com/zhedahht/CodingInterviewChinese2)
8. [C++ 语言参考 | Microsoft Docs](https://docs.microsoft.com/zh-cn/cpp/cpp/cpp-language-reference?view=vs-2017)