News for hackers. Stuff that matters.
Re:FizzBuzz in J, Explained by johnvaluk on Thursday January 19, 2017 @09:16PM (#13441269)
If the string 'FizzBuzz' appears in your code, you have failed FizzBuzz.
Re:FizzBuzz in J, Explained by taeric on Thursday January 19, 2017 @09:18PM (#13441284)
How do you mean?
Re:FizzBuzz in J, Explained by Spivak on Thursday January 19, 2017 @09:23PM (#13441318)
Typically, because there is (usually, not always) a more elegant solution when one recognizes 15 = 5 × 3 so you can avoid the need for a separate case to handle divisibility by 15.
Re:FizzBuzz in J, Explained by taeric on Thursday January 19, 2017 @09:41PM (#13441400)
Ah, I misread that to be either fizz or buzz.