SyntaxFix
Write A Post
Hire A Developer
Questions
some_list.remove(some_list[max(i, j)])
Avoids sorting cost and having to explicitly copy list.