Find the Second Smallest Element in an Array Given an array of integers nums, return the second smallest unique element in the array. If there is no such element (e.g., all elements are equal or there is only one unique value), return -1
Check out your Company Bowl for anonymous work chats.