The Duolingo Karat interview included three short DSA analysis questions followed by a larger coding problem based on web-resource access logs. The coding task required reconstructing each user’s chronological navigation path and building a probabilistic transition graph that included synthetic START and END states.
Interview Details
DSA Analysis — Three Short Questions
The interview started with three short data structures and algorithms analysis questions.
Coding — Build a Resource Transition Graph
The main problem provided an unsorted collection of web-access logs. Each log entry contained:
access_time
user_id
resource_id
access_time
user_id
resource_id
All access times represented seconds within the same day. The task was to build a transition graph showing how users moved between resources. The output should be an adjacency list where each source resource maps to its possible next states and the probability of each transition. Two special states were required:
START
END
START
END
START represents the beginning of each user’s browsing session.
END represents the point after that user’s final resource visit. END may appear as a destination but should not appear as a source node because it is terminal.