• + 0 comments

    The issue is that in every iteration you are finding the max value in array and then slicing, this is a n^2 solution thats why