Ad
  • Custom User Avatar

    I've made the proper changes so it's a list of arrays of integers. Now it's saying "The last snapshot is NOT the sorted list [18, 20, 30]. ==> expected: <true> but was: <false>". It seems someone else here had a similar problem but I'm not quite sure how to fix it.

  • Custom User Avatar

    I keep getting the fail message "Initial list is not sorted, so correct answer is NOT []. ==> expected: <true> but was: <false>". I've tried everything i can think of or find online to try and fix this but nothing seems to work. This is my output whenever I test it:

    [30, 18, 5, 30, 51, 10, 20, 99, 50, 30, 100, 33]
    [30, 18, 5, 30, 20, 10, 51, 99, 50, 30, 100, 33]
    [10, 18, 5, 30, 20, 30, 51, 99, 50, 30, 100, 33]
    [10, 5, 18, 30, 20, 30, 51, 99, 50, 30, 100, 33]
    [5, 10, 18, 30, 20, 30, 51, 99, 50, 30, 100, 33]
    [5, 10, 18, 20, 30, 30, 51, 99, 50, 30, 100, 33]
    [5, 10, 18, 20, 30, 30, 51, 33, 50, 30, 100, 99]
    [5, 10, 18, 20, 30, 30, 30, 33, 50, 51, 100, 99]
    [5, 10, 18, 20, 30, 30, 30, 33, 50, 51, 99, 100]

    If anyone could help me with this, I would greatly appreciate it.