[Bonfire] No repeats please

[Bonfire] No repeats please
0

#1

Hey Guys, I can not see the problem here. Can you help me?

The problem is described at: https://www.freecodecamp.com/challenges/no-repeats-please

So, my heap generator is not generating the things like i want :frowning:

Any thought?


#2
if( i % 2 === 0 )
  swap(i, n-1, arr);
else
  swap(0, n-1, arr);

It should be if(n % 2 === 0)