![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程练习
edwardwjz
这个作者很懒,什么都没留下…
展开
-
Leetcode-How-What 力扣Leetcode刷题指南
Leetcode-How-What 力扣Leetcode刷题指南About the way how to use Leetcode wisely for preparing the interview and the solutions to some Leetcode problems’. 怎样为准备面试机智聪明的刷题(高效刷题)以及一些题目的题解。 同 github 链接: https:/...原创 2020-03-05 10:39:53 · 2564 阅读 · 1 评论 -
PAT乙等1005 继续3n+1猜想 普通模拟
卡拉兹(Callatz)猜想已经在1001中给出了描述。在这个题目里,情况稍微有些复杂。当我们验证卡拉兹猜想的时候,为了避免重复计算,可以记录下递推过程中遇到的每一个数。例如对n=3进行验证的时候,我们需要计算3、5、8、4、2、1,则当我们对n=5、8、4、2进行验证的时候,就可以直接判定卡拉兹猜想的真伪,而不需要重复计算,因为这4个数已经在验证3的时候遇到过了,我们称5、8、4、2是被原创 2018-01-06 16:25:53 · 506 阅读 · 0 评论 -
PAT 甲 1045 Favorite Color Stripe
原作者: edwardwjz原文链接 http://blog.csdn.net/edwardwjz/article/details/79026173Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in h原创 2018-01-10 17:14:51 · 259 阅读 · 0 评论 -
PAT 甲 1032 Sharing 只用一个一维数组的极简做法_哈希
题目出处: https://www.patest.cn/contests/pat-a-practise/1032Input Specification:Each input file contains one test case. For each case, the first line contains two addresses of nodes and a positive N (&l...原创 2018-03-07 16:09:27 · 397 阅读 · 3 评论