Skip to content

Latest commit

 

History

History

convert-to-binary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Task Overview

Given a non-negative integer n, write a function toBinary/ToBinary which returns that number in a binary format.

to_binary(1)  /* should return 1 */
to_binary(5)  /* should return 101 */
to_binary(11) /* should return 1011 */