Write a function that takes in one argument:
it takes in an array of sorted, positive numbers in non-decreasing order.
This function should remove the duplicates in place so that each unique element appears no more than twice. The relative order of the elements should be kept the same. The numbers that are duplicated (when there are more than 2) should go to the end of the array and be replaced with -1.
On this page of the site you can watch the video online How to remove duplicate elements from the Array? | JAVA | INTERVIEW | CODING | with a duration of hours minute second in good quality, which was uploaded by the user TechtorialAcademy 25 November 2022, share the link with friends and acquaintances, this video has already been watched 305 times on youtube and it was liked by 11 viewers. Enjoy your viewing!