Pergunta de entrevista da empresa Qualys

they mainly focus on data structure and algorithm. one question is like i have given some positive integer n and i have to print binary representation of all the numbers from 1 to n.

Resposta da entrevista

Sigiloso

9 de nov. de 2022

i use a queue data structure. first store 1 in queue and the push 0 and 1 at alternate times.