Duolingo
Karat-run intern screens, a phone screen on the encrypt-and-decrypt variant, a shared-screen debugging round, pair programming and a code review of a real pull request.
Typical loop
- 1Recruiter screen
- 2Karat screen: three complexity questions, then one coding problem
- 3Technical phone screen: coding, then debugging on the interviewer's screen
- 4Pair programming and code review rounds
- 5Final round with the team
Questions
Callback's practice questions and the LeetCode questions Duolingo has been asking, filtered together.
Practice questions
Algorithms & Data Structures · The Encrypt and Decrypt Strings variant the phone screen asks: return the dictionary words a ciphertext can decode to, not how many, by DFS with backtracking.
Count Cells That Climb to the Global Maximum
Algorithms & Data Structures · A deterministic greedy walk uphill from every cell with a fixed tie-break; memoise where each walk ends, since strictly increasing heights cannot cycle.
Transition Graph From Access Logs
Algorithms & Data Structures · Sort each user's accesses into a path from START to END, count transitions per source, and turn the counts into probabilities.
Algorithms & Data Structures · First, last, second, second-to-last: two pointers walking inward build the new array in one pass.
Algorithms & Data Structures · Count consonants as you scan, advance every nth one to the next consonant with wrap-around, and keep its case.
Longest Stable Transaction Period
Algorithms & Data Structures · The longest run of consecutive days whose total is divisible by k: prefix sums modulo k and the first index each remainder appeared.
Algorithms & Data Structures · A 9 by 7 board with rivers, traps and dens, eight ranked pieces with the Rat-Elephant exception and the Lion and Tiger jump, driven through an action API; object-oriented design under test.
Does This In-Place Reverse Work?
Algorithms & Data Structures · A reversal loop that visits every index swaps each pair twice; fix the range and state the complexity.
Top N Matches From a Constant-Time Score
Algorithms & Data Structures · P candidates, an O(1) score, N much smaller than P: a min-heap of size N beats sorting, in time and in space.
Code Review: Glossary Entries by Time
Algorithms & Data Structures · A small Python diff to review on a shared screen: a hard-coded credential, a client built per call instead of the injected one, and a loop that loses its results.
Asked on LeetCode
5 questions · all time
- Encrypt and Decrypt StringshardArrayHash TableStringDesign+1frequency 100.0
- K Radius Subarray AveragesmediumArraySliding Windowfrequency 80.9
- Minimum Number of People to TeachmediumArrayHash TableGreedyfrequency 80.9
- Longest Increasing Path in a MatrixhardArrayDynamic ProgrammingDepth-First SearchBreadth-First Search+5frequency 72.0
- Task Scheduler IImediumArrayHash TableSimulationfrequency 67.8