Pregunta de entrevista de TikTok

Describe an algorithm that does sorting.