Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 378 Bytes

you_cant_code_under_pressure_№1.md

File metadata and controls

20 lines (17 loc) · 378 Bytes

Description

If you can't sleep, just count sheep!!

Task:

Code as fast as you can! You need to double the integer and return it.

My Solution

def double_integer(i)
  2*i
end

Better/Alternative solution from Codewars

def double_integer(i)
  i << 1
end