โ
Strong algorithmic intuition โ immediately jumped to the optimal hash map approach without prompting.
โ
Good use of Big-O notation to justify the approach. Interviewer noticed the trade-off discussion.
โ ๏ธCommunication could be cleaner: pause, state your approach explicitly, then code. Don't think out loud while writing.
โ ๏ธMissed the duplicate-key edge case initially. Always run through empty input, single element, and all-negatives before starting.
๐กPractice saying: "I'll handle [edge case] by..." โ it signals thoroughness to interviewers.