Find the third-largest word by length
Company: Codeium
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Take-home Project
Quick Answer: This question evaluates proficiency in string and array manipulation, ordering by key metrics (string length), and handling tie-breaking via stable ordering, situated in the Coding & Algorithms domain.
Constraints
- Inputs are Python literals matching the function signature.
- Return a deterministic exact-match value.
Examples
Input: (['hello','world','before','all'],)
Expected Output: 'world'
Explanation: before ranks first, hello second, world third by stable order.
Input: (['hello','world','after','all'],)
Expected Output: 'after'
Explanation: Same-length words keep input order.
Input: (['coder','byte','code'],)
Expected Output: 'code'
Explanation: Third-ranked word is code.
Hints
- Clarify edge cases before coding.
- Keep the return value deterministic.