
Longest trip without repeat cities
hardTwo pointers
Longest trip without repeat cities
hardPremium
A hard two pointers question from Airbnb data interviews. It is part of Premium — upgrade to practice it, along with every other question and lab in the library.
- The full question and its datasets
- The editor with instant grading
- A worked solution and common mistakes
Free questions on two pointers
Practice the same pattern now, at no cost.