Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
contravariant
· 5y ago · 0 comments
With a better chosen dp approach you can even solve it in O(log(n)). Though at that point the extra cost of multiplying large integers becomes non-negligible.
Comments
[–]
maxmaio
5y ago
I'm having trouble coming up with this approach on my own. could you share it please?