Ah, there's your problem: "Hacker Rank" Do I really have to elaborate on that?
Oh hey look, a single-threaded runtime running a callback-oriented language performs poorly. how surprising.
you leave the interview and say you're not interested in the company anymore :P
you should look at the code again.
well, there are variations of the problem. some people ask candidates to print the number, some ask to print empty string, etc. I'm just used to the latter.
Whenever asked to do fizzbuzz i always do it in ruby (1..100).each{|n| p "#{'fizz' if n%3==0}#{'buzz' if n%5==0}"}
Ah, there's your problem: "Hacker Rank" Do I really have to elaborate on that?
Oh hey look, a single-threaded runtime running a callback-oriented language performs poorly. how surprising.
you leave the interview and say you're not interested in the company anymore :P
you should look at the code again.
well, there are variations of the problem. some people ask candidates to print the number, some ask to print empty string, etc. I'm just used to the latter.
Whenever asked to do fizzbuzz i always do it in ruby (1..100).each{|n| p "#{'fizz' if n%3==0}#{'buzz' if n%5==0}"}