package
Version:
v0.0.0-...-4302f07
Opens a new window with list of versions in this module.
Published: Jul 10, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
常规做法就是单循环里用n不断减去m,时间复杂度O(n/m)
。可以采用类似矩阵快速幂的优化方法,
事先预处理出所有的m*(2^n)<=n
,这样复杂度就能降低到log级
time complexity: O(log(n/m))
space complexity: O(log(n/m))
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.