
Longest trip without repeat cities
hardPython
Longest trip without repeat cities
hardPremium
About this question
A hard Python question from Airbnb data engineering and data science interviews about the longest run of cities with no repeat. It tests sliding window, two pointers and hash sets.
The full question, its data and the solution are part of Premium, along with every other question in the library.
- The full question and its datasets
- The editor with instant grading
- A worked solution and common mistakes
Free questions on python
Practice the same ground now, at no cost.