← TCS questions
CodingReported in a candidate post, Mar 2025

Find the second largest number in an array

Filed under TCS

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.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.