Pergunta de entrevista da empresa Google

Write an algorithm to display ranges of digits in a list & describe time complexity