Pergunta de entrevista da empresa Check Point Software Technologies

how to reset all the elements in an array in O(1)?