- 博客(4)
- 收藏
- 关注
原创 game2048
Game 2048 文章目录Game 2048Environment PreparationMain task`emptySpaceExists(Board b)`Related classSolutionReview`maxTileExists(Board b)`Related classSolutionReview`atLeastOneMoveExists(Board b)`Related classSolutionReview`tilt(Side side)`Related classSolution
2022-03-27 17:28:26
2592
1
原创 python函数
python函数 1.函数定义 2.函数参数 形参、实参 def calc(x, y): res = x ** y return res a = input() b = input() c = calc(int(a),int(b)) print(c) 其中 x,y为形参;而a,b为实参 在这里,a和b只是把他们各自的值给传递给x和y;仅为值传递 默认参数 def stu_register(name,age,course,country="CN") **注意:**默认参数
2021-09-07 21:51:36
115
原创 数据结构复习(二)----链表
数据结构复习(二)—链表 链表基本分类 1.单链表 2.双链表 3.循环链表 链表定义和图示化表达 简言之,就是data加next指针打包在一起; 链表的基本操作: 1.链表的定义 #define Elemtype int typedef struct LNode { Elemtype data; LNode* next; }LinkList; 2.链表的基本操作 1.头插法建表 void CreateListHead(LinkList*&L, int a[],int n) { L=(Lin
2021-09-03 20:21:46
247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅