Sha256: fffe6061cc9d763cc187814034ab701731693728cd2ef4646577ebaa84a5cbe8
Contents?: true
Size: 527 Bytes
Versions: 10
Compression:
Stored size: 527 Bytes
Contents
{ "question": { "nerd_level": 4, "text": "Which code gives proper FizzBuzz solution?", "a1": "(1..100).map {|i| ['fizzbuzz', nil, nil, 'fizz', nil, 'buzz'][i % 6] || i }", "a2": "(1..100).map {|i| (i%5).zero? ? \"Fizz\" : (i%3).zero? ? \"Buzz\" : i }", "a3": "(1..100).map {|i| ['fizzbuzz', 'fizz', 'buzz', i][[i%15,i%3,i%5,0].index(0)] }", "a4": "All of the above", "created_by": "Mike Poltyn", "created_at": "2011-06-15", "category": "ruby", "right_answer": "a3", "id": "" } }
Version data entries
10 entries across 10 versions & 1 rubygems