Given an integer array `nums`, find and return the second largest distinct number in the array. If no distinct second largest exists (e.g., all elements are identical or array has fewer than two…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.