Skip to content

AutuanLiu/Code-Storm2019

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

191 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode2019

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

算法

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

数组输出

template <typename T>
void print_vector(vector<T>& nums);

template <typename T>
void print_matrix(vector<vector<T>>& matrix);

libtorch 使用案例

  1. Mnist libtorch C++ 版本

Deep Learning 实现

  1. dropout
  2. batchnorm
  3. layernorm
  4. conv2d
  5. pool2d
  6. numpy 实现2层的全连接网络

语言

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

信息

(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题目的思路)
  2. apachecn/awesome-algorithm: LeetCode, HackRank, 剑指offer, classic algorithm implementation
  3. billryan/algorithm-exercise: Data Structure and Algorithm notes. 数据结构与算法/leetcode/lintcode题解/
  4. csujedihy/lc-all-solutions: My own leetcode solutions by python
  5. HuberTRoy/leetCode: ✏️ 算法相关知识储备 LeetCode with Python
  6. xuelangZF/LeetCode: 正确的姿势,学习的态度来刷 LeetCode:高效的代码、简洁的注释、精炼的总结。
  7. zhedahht/CodingInterviewChinese2: 《剑指Offer》第二版源代码
  8. C++ 语言参考 | Microsoft Docs

About

LeetCode2019

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published