Email or username:

Password:

Forgot your password?
Elias Mårtenson

Since someone else was talking about fizzbuzz here just now, here's the Kap solution to print the first 20 results:

(2⊥0=3 5|)¨«%»((⊂"fizz") (⊂"buzz") (⊂"fizzbuzz"),⍨⊂) ⍳20

You you can see, there s very little actual code outside the strings.

If I was given this quiz in an interview, would I get the job?

3 comments
Troed Sångberg

@loke Would you want to work in a place that has you answering fizzbuzz questions to get the job?? ;)

Elias Mårtenson

@troed I guess I'd be OK with working for a place that would appreciate my solution for what it is. 🙂

Samuel Chase

@troed @loke Considering the kind of interview questions that get asked now (leetcode style), I'd be glad if fizzbuzz were used as a basic test of programming ability, and then moving on to more substantial technical questions.

Go Up