Codersumo - Challenge your inner sumo coder.
codersumo.com
codersumo.com
For instance, without entering any changes, I got: http://codersumo.com/solutions/Id1SOh
[Not there yet. Your solution is not correct. Try again!]
Then, going to: http://codersumo.com/solutions/Id1SOh/correct gives a welcome page.
The interesting thing for me was which language to do it in. I hovered over JavaScript and Python before finally opting to do it in "safe" Java... a language I haven't programmed in for ten years but whose C-style syntax I could write in my sleep.
Attempting challenges could be helpful for keeping me on my toes in other languages.
Hope this helps! :)
That's more like this: http://alan.dipert.org/post/172774481/fizzbuzz-in-scala-and-...
print """1
2
Fizz
4
Buzz
Fizz
7
...
94
Buzz
Fizz
97
98
Fizz
Buzz"""I was expecting some kind of code-golf mark for that challenge though. There are many ways to solve it.
The FizzBuzz test might be very easy, but you are assuming that these challenges will be for people of your own skill level. Probably the site will want to cater for a wider audience, from beginner to advanced, and FizzBuzz provides a good starting point for both.
And anyway, we have all read enough about FizzBuzz to know that even "experienced" "professionals" can fail spectacularly at it.
*: random figure
Like, after the naive solution try without if statement, then without switch statement, and so on, until you are eventually left with just a print statement (+ given for loop) :)