Day 7: Finding the Second Largest Element — How Interviewers Actually Expect You to Think
Problem:Find the second largest element in an array.
Example:Input: [1, 5, 2, 9, 3]Output: 5
🧠 Step 1: Think Like an Interviewer (Not a Coder)
If I’m sitting in a interview, I don’t start coding.
I first ask:
“Before I proceed, can I confirm the...
richak.hashnode.dev6 min read