![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
算法
计算机算法
DataPeak
不会做饭的程序员不是好的摄影师
展开
-
LeetCode本地测试新建class模板
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end#parse("File Header.java")import org.junit.jupiter.params.ParameterizedTest;import org.junit.jupiter.params.provider.MethodSource;import java.util.List;import java.uti..原创 2021-10-18 14:47:37 · 154 阅读 · 0 评论 -
Fun with Sorting Algorithms
About the Author: Alex, loves programming, reading, cooking and bikingCode'''sort.py'''import randomimport copydef insertion_sort(array: tuple): ''' it's like sort a hand of pokers b...原创 2018-11-02 22:08:15 · 159 阅读 · 0 评论 -
数据结构与算法复习-C语言回顾
C语言数组定义一维数组类型符 数组名[常量表达式];int a[10];int b[5] = {1, 2, 3, 4, 5};void func(int n){ int a[2 * n];}指定数组为静态static存储方式,则不能用“可变长数组”static int a[2 * n]; // 不合法,a数组指定为`static`存储方式指针存储地址的变量:类...原创 2019-10-06 22:21:14 · 452 阅读 · 0 评论