You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you find duplicate numbers in an array if it contains multiple duplicates?
Solution:
An array with N member have maximum (N/2) duplication number. Create tmp Array[n/2] hold duplicate number. If a member appear 3 or more time then ignore in tmp Array[n/2]