Pergunta de entrevista da empresa Caspex

Number of distinct arrays you can generate from a given array by swapping 2 elements

Resposta da entrevista

Sigiloso

7 de fev. de 2024

I wanted to use a hashset, but apparently arrays don't conform to the Hashable protocol in older compiler versions. Still completed the question using a different approach