Duolingo Software Engineer Interview Experience: Timestamp Intervals Without Sorting, Rejected

Duolingo·Software Engineer·Nov 2026
Technical ScreenRejectedmedium

I read other posts saying Duolingo asks the encrypt question, but I didn't get that one.

The question I got was very similar to LeetCode 128. The input is a list of timestamps (unsorted, in the format yyyy-mm-dd-hh-mm), and the output is a list of intervals (in the format yyyy-mm-dd). I wasn't allowed to sort, and the solution approach is the same as LeetCode 128, in O(n).

You need to convert the data type from LocalDateTime to LocalDate (the interviewer allowed me to google the library), and then you just go through it with a set.

The question isn't hard, but in the end I didn't solve it with the optimal O(n) solution, and I got rejected.

  • How do you determine an interval's start and end dates from the timestamps? (Just yyyy-mm-dd. The answer doesn't need to be sorted, a Set is enough.)
  • How do you merge intervals in O(n) with a set, without sorting? (Look at the LeetCode 128 solution.)

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
Duolingo
Role
Software Engineer
Rounds
Technical Screen
Outcome
Rejected
Difficulty
medium
Interview date
Nov 2026
Questions from this interview
1 question

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences