Pregunta de entrevista de Bloomberg

Some basic questions about data structures, some mathematics