Longest trip without repeat cities

Two pointers

Longest trip without repeat cities

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