create account

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

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @torsteoe/q3j20y

· @quantumdeveloper · (edited)
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.
👍  
properties (23)
authorquantumdeveloper
permlinkq3opmk
categoryprogramming
json_metadata{"app":"steemit/0.1"}
created2020-01-06 12:06:21
last_update2020-01-06 12:08:45
depth2
children0
last_payout2020-01-13 12:06:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length364
author_reputation4,456,611,502,865
root_title"Computation Contest #9 [2 SBI]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id94,092,989
net_rshares506,203,211
author_curate_reward""
vote details (1)