算法复杂度的优化
Krystalcsdn
这个作者很懒,什么都没留下…
展开
-
Google Kickstart 2019G The Equation
ProblemThe laws of the universe can be represented by an array ofNnon-negative integers. The i-th of these integers isAi.The universe isgoodif there is a non-negative integer k such that the ...原创 2019-11-14 19:35:47 · 273 阅读 · 0 评论 -
以空间换时间google2019G轮第一题
ProblemSupervin is a librarian handling an ancient book withNpages, numbered from 1 toN. Since the book is too old, unfortunatelyMpages are torn out: page numberP1,P2, ...,PM.Today, there ...原创 2019-10-21 11:50:38 · 340 阅读 · 1 评论 -
找规律,字符串的操作(leetcode159周赛第2题)
删除子文件夹你是一位系统管理员,手里有一份文件夹列表folder,你的任务是要删除该列表中的所有子文件夹,并以任意顺序返回剩下的文件夹。我们这样定义「子文件夹」:如果文件夹folder[i]位于另一个文件夹folder[j]下,那么folder[i]就是folder[j]的子文件夹。文件夹的「路径」是由一个或多个按以下格式串联形成的字符串:/后跟一个或者...原创 2019-10-20 21:46:02 · 321 阅读 · 0 评论