Pergunta de entrevista da empresa AMD

Return the 1st digit of an unsigned integer (ex. return 1 if the integer was 12345)

Resposta da entrevista

Sigiloso

1 de nov. de 2018

Simple while loop and dividing by increasing powers of 10.