Sha256: a7082e4f6d1535b0fa8acfa0d45e5fa86f005383f89ca9358302299525e1649b
Contents?: true
Size: 550 Bytes
Versions: 216
Compression:
Stored size: 550 Bytes
Contents
" " Given a person's allergy score, determine whether or not they're allergic to " a given item, and their full list of allergies. " " eggs 1 " peanuts 2 " shellfish 4 " strawberries 8 " tomatoes 16 " chocolate 32 " pollen 64 " cats 128 " " Examples: " " :echo AllergicTo(5, 'shellfish') " 1 " " :echo List(5) " ['eggs', 'shellfish'] " function! AllergicTo(score, allergy) abort " your code goes here endfunction function! List(score) abort " your code goes here endfunction
Version data entries
216 entries across 216 versions & 1 rubygems