Longest trip without repeat cities

Python

Longest trip without repeat cities

Airbnb Python Interview Question
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