RE: Computation Contest #9 [2 SBI] by torsteoe

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com

Viewing a response to: @torsteoe/q3j20y

·@quantumdeveloper·
0.000 HBD
What you did is just implementing "the intuitive algorithm of simple repeated addition" which I mentioned in the problem which is as you correctly discovered very slow because you need b calls to func1(you could have written there just a+b instead of func1(a,b). Addition is allowed).

You might also want to think about what happens when you use negative numbers.
👍 ,