As reported: Expedia SDE2 hiring drive, coding round (Feb 2025): Valid Parentheses, then a hotel-reviews question.
Given a string s of the characters ()[]{}, return true if it is a valid bracket sequence: every opener is closed by the same type in the correct order.
This is LeetCode 20 — Valid Parentheses.
Example
"()[]{}" -> true
"(]" -> false
"([)]" -> false
Constraints: 1 ≤ s.length ≤ 10^4.
Code runner format: one line with s as a JSON string. Implement isValid(s); the harness prints true or false.