
算法
计算机算法
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 · 209 阅读 · 0 评论 -
Fun with Sorting Algorithms
About the Author: Alex, loves programming, reading, cooking and biking Code ''' sort.py ''' import random import copy def insertion_sort(array: tuple): ''' it's like sort a hand of pokers b...原创 2018-11-02 22:08:15 · 213 阅读 · 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 · 506 阅读 · 0 评论