11 2020 档案

摘要:The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. 阅读全文
posted @ 2020-11-30 19:59 rebloom000 阅读(146) 评论(0) 推荐(0)
摘要:题目来源 https://www.acwing.com/problem/content/description/2/ 思路 基本按照该文章 https://www.jianshu.com/p/a66d5ce49df5 思路码出的代码,感觉动态规划的本质还是在不断的打表,空间上还能用滚动数组优化,先挖 阅读全文
posted @ 2020-11-13 19:34 rebloom000 阅读(87) 评论(0) 推荐(0)
摘要:题目描述 给出两个字符串 s1s_1s1​ 和 s2s_2s2​,若 s1s_1s1​ 的区间 [l,r][l, r][l,r] 子串与 s2s_2s2​ 完全相同,则称 s2s_2s2​ 在 s1s_1s1​ 中出现了,其出现位置为 lll。 现在请你求出 s2s_2s2​ 在 s1s_1s1​ 阅读全文
posted @ 2020-11-07 17:05 rebloom000 阅读(208) 评论(0) 推荐(0)
摘要:小明买了块高端大气上档次的电子手表,他正准备调时间呢。 在 M78 星云,时间的计量单位和地球上不同,M78 星云的一个小时有 n 分钟。 大家都知道,手表只有一个按钮可以把当前的数加一。在调分钟的时候,如果当前显示的数是 0 ,那么按一下按钮就会变成 1,再按一次变成 2 。 如果当前的数是 n 阅读全文
posted @ 2020-11-04 18:25 rebloom000 阅读(210) 评论(0) 推荐(1)