Ad
  • Custom User Avatar

    I'm also using JS and having the same problem. It looks like sample cases are working, but random are not. In fact, it looks like random cases are expecting a quadrupled answer instead of doubled, eg:

    Testing for 2,2,2,4,8,3 and 2

    It should work for random inputs too - Expected: '[8, 8, 8, 16, 32, 12]', instead got: '[4, 4, 4, 8, 16, 6]'