Find the Runner-Up Score!

  • + 0 comments

    First you are running for loop on arr, so best case complexity is O(n). Then there are check on entire new list for each iteration, which will make your algo ~ O(n^2)