Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same.
🔍 Duplicate Element Finder This program identifies and returns duplicate elements from an input array. It uses an efficient approach with unordered sets to ensure fast lookups and minimal time ...