create account

RE: Introducing the Coding Challenge by ratticus

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

Viewing a response to: @reggaemuffin/re-tzs-re-reggaemuffin-introducing-the-coding-challenge-20170818t054013756z

· @ratticus ·
$0.03
Only comment I have is the question asked for 0 to 100 but the solutions are for 1..100. How does either solution work for 0? Dealing with 0 shouldn't be too difficult, though 0/x is going to be 0 and 0 mod x is also 0. I guess it will/should print FizzBuzz for n=0.
👍  
properties (23)
authorratticus
permlinkre-reggaemuffin-re-tzs-re-reggaemuffin-introducing-the-coding-challenge-20170818t072036776z
categorycoding-challenge
json_metadata{"tags":["coding-challenge"],"app":"steemit/0.1"}
created2017-08-18 07:20:36
last_update2017-08-18 07:20:36
depth3
children3
last_payout2017-08-25 07:20:36
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length266
author_reputation5,793,669,654,286
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,152,860
net_rshares7,599,660,789
author_curate_reward""
vote details (1)
@reggaemuffin ·
True his solution starts at 1, good catch, here is a tip! But yeah it will work with 0, pretty sure.
properties (22)
authorreggaemuffin
permlinkre-ratticus-re-reggaemuffin-re-tzs-re-reggaemuffin-introducing-the-coding-challenge-20170818t101426256z
categorycoding-challenge
json_metadata{"tags":["coding-challenge"],"app":"steemit/0.1"}
created2017-08-18 10:14:30
last_update2017-08-18 10:14:30
depth4
children0
last_payout2017-08-25 10:14:30
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_length100
author_reputation37,964,839,695,531
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,161,916
net_rshares0
@tipu ·
<table><tr><td>http://i.imgur.com/IFF4CSc.jpg</td><td><p><strong>Hi @ratticus! You have just received a 0.5 SBD tip from @reggaemuffin!</strong></p><hr><p><a href="https://steemit.com/steemit/@tipu/tipu-quick-guide" rel="noopener">@tipU quick guide</a> |  How to check your <a href="https://steemit.com/steemit/@tipu/cool-steem-tools-check-your-pending-payouts-with-charts" rel="noopener">pending payouts.</a></p></td></tr></table>
properties (22)
authortipu
permlinkre-re-reggaemuffin-re-tzs-re-reggaemuffin-introducing-the-coding-challenge-20170818t072036776z-20170818t101441
categorycoding-challenge
json_metadata""
created2017-08-18 10:14:42
last_update2017-08-18 10:14:42
depth4
children0
last_payout2017-08-25 10:14:42
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_length431
author_reputation55,914,556,170,175
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,161,928
net_rshares0
@tzs ·
Check this one: [http://codepad.org/GPTa3Tgm](http://codepad.org/GPTa3Tgm)
properties (22)
authortzs
permlinkre-ratticus-re-reggaemuffin-re-tzs-re-reggaemuffin-introducing-the-coding-challenge-20170818t233814387z
categorycoding-challenge
json_metadata{"tags":["coding-challenge"],"links":["http://codepad.org/GPTa3Tgm"],"app":"steemit/0.1"}
created2017-08-18 23:38:12
last_update2017-08-18 23:38:12
depth4
children0
last_payout2017-08-25 23:38:12
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_length74
author_reputation66,276,041,146
root_title"Introducing the Coding Challenge"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,218,020
net_rshares0