How to Remove the duplicates in an array.
How to Remove the duplicates in an array.
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
compare each array index value one by one with whole array, if it found both are similar then delete it or shifts lower index to up side by using loop and inserting statement a[i]==a[i++]
Thanks for comments:
This is ok for replacing single element duplicates but complexity grows when we have multiple duplicates of different elements on various positions. So I am looking for efficient searching algorithm.