4 ms·
A simple problem with constraints can be really fun. For example, implement FizzBuzz without using any looping constructs.
by adregan 4y ago
A simple problem with constraints can be really fun. For example, implement FizzBuzz without using any looping constructs.
- foobiekr 4y agoThe variant of fizzbuzz that I use is "read and categorize a line at a time from stdin." You'd be amazed how this one small change makes the discussion quite different.
- adregan 4y agoIn your variant do the integers increase in order? Also is the input always integers or is there some “junk” mixed in?
- foobiekr 4y agoIt doesn't even matter, but sometimes I ask them to do a sliding window de-dupe. A surprising number of people have a lot of trouble with the reading loop/termination condition.