Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def solution(keys, default_value)
- answer = {}
- keys.each { |k| answer[k] = default_value}
- end
- assert_equals({:draft => 0, :completed => 0}, solution([:draft, :completed], 0))
Advertisement
Add Comment
Please, Sign In to add comment