
算法
文章平均质量分 91
不减一百斤不改名
这个作者很懒,什么都没留下…
展开
-
算法复杂度计算
LetT(n)T(n)=aT(bn)+O(nd)fora>1,b>1andd>0, thenT(n)dlogbaT(n)=O(nd)看到上面三个时间复杂度计算的前提条件,发现少了一项,就是d=0。原创 2022-11-27 15:10:15 · 565 阅读 · 1 评论 -
0/1背包变式
MaxNumberOfUsersProblem DescriptionThere is a server which has the disk space of MMM and the memory of NNN. Given some tasks, the i−thi-thi−thtask needs the disk space of XiX_iXi and the memory of ...原创 2019-11-17 19:21:49 · 284 阅读 · 0 评论 -
Number of Islands
Number of IslandsProblem descriptionGiven a 2d m×nm\times nm×n grid map of '1’s (land) and '0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adj...原创 2019-11-06 19:03:50 · 239 阅读 · 0 评论