call(back)

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

  1. 1Recruiter screen
  2. 2Karat screen: three complexity questions, then one coding problem
  3. 3Technical phone screen: coding, then debugging on the interviewer's screen
  4. 4Pair programming and code review rounds
  5. 5Final round with the team

Questions

Callback's practice questions and the LeetCode questions Duolingo has been asking, filtered together.

Practice questions

Decrypt to Dictionary Words

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.

mediumSign in to star problems

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.

mediumSign in to star problems

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.

mediumSign in to star problems

Interleave Front and Back

Algorithms & Data Structures · First, last, second, second-to-last: two pointers walking inward build the new array in one pass.

easySign in to star problems

Shift Every Nth Consonant

Algorithms & Data Structures · Count consonants as you scan, advance every nth one to the next consonant with wrap-around, and keep its case.

easySign in to star problems

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.

mediumSign in to star problems

Animal Chess Engine

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.

hardSign in to star problems

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.

easySign in to star problems

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.

easySign in to star problems

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.

mediumSign in to star problems

Asked on LeetCode

5 questions · all time