Legrand Interview Question

Write a program to convert an integer into 1's and 0's in C++

Interview Answer

Anonymous

Jul 6, 2017

check for division by powers of two, then mod the number by these powers until every bit is represented