Shuffling Machine和双向链表
摘要:1. 双向链表 https://github.com/BodhiXing/Data_Structure 2. Shuffling Machine https://pta.patest.cn/pta/test/17/exam/4/question/264 思路: 代码:
阅读全文
posted @
2016-12-07 22:09
LeoSanford
阅读(167)
推荐(0)
Have Fun with Numbers及循环链表(约瑟夫问题)
摘要:1. 循环链表(约瑟夫问题) https://github.com/BodhiXing/Data_Structure 2. Have Fun with Numbers https://pta.patest.cn/pta/test/17/exam/4/question/263
阅读全文
posted @
2016-12-03 16:33
LeoSanford
阅读(244)
推荐(0)
数组元素循环右移及静态链表
摘要:1. 静态链表 https://github.com/BodhiXing/Data_Structure 2. 数组元素循环右移 https://pta.patest.cn/pta/test/17/exam/4/question/262 思路:不做循环,只是换方式打印输出。
阅读全文
posted @
2016-11-30 21:09
LeoSanford
阅读(321)
推荐(0)
素数对猜想及线性表链式存储
摘要:1.线性表链式存储 https://github.com/BodhiXing/Data_Structure 2.素数对猜想 https://pta.patest.cn/pta/test/17/exam/4/question/261 思路:查找小于N的素数,存入数组,若相邻的相差2,则计数加1。
阅读全文
posted @
2016-11-09 18:52
LeoSanford
阅读(187)
推荐(0)
打印沙漏及线性表的顺序存储结构
摘要:1.线性表顺序存储代码 https://github.com/BodhiXing/Data_Structure 2. 打印沙漏 https://pta.patest.cn/pta/test/17/exam/4/question/260 设沙漏上半部分的行数为n,则总数为。沙漏的上半部分的空格递增,下
阅读全文
posted @
2016-11-07 22:49
LeoSanford
阅读(245)
推荐(0)