You should be able to generalize the solution from the common 
implementation of DP Fibonacci.

One caveat would be that expressing the integers as strings will make it 
harder to do arithmetic on them.

On Monday, May 14, 2018 at 8:22:00 PM UTC-4, Alex Dvoretskiy wrote:
>
> Hello Golang Nuts
>
> I'm trying to solve a problem. Algorithm is correct, but too slow. Perhaps 
> you can give me some ideas on how to improve running time?
>
> https://play.golang.org/p/XsXwT8EHtwC
>
>
> Thanks
> Alex
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to