Directi frontend mock interview
Pick from 11 questions candidates reported at Directi or its interview guide picks, solve them against the clock, then answer the follow-ups.
Build your interview
Pick up to 6 questions, or add them at random. They share one clock and open in any order.
Directi's 11 questions are part of Pro. Choose Google, Meta, Amazon, Microsoft and Flipkart to pick from their free questions.
Your interview
0 of 6
0min on one clock
- 1Choose a free company to start
Directi mock interviews are part of Pro
With a free account you can take mock interviews for Google, Meta, Amazon, Microsoft and Flipkart.
The Directi loop
The rounds Directi runs for frontend roles, from its interview guide. The mock interview rehearses the coding and design rounds.
- 1Online coding testCompetitive-programming style problems. Reported ones include counting knight-style paths on a grid up to 10^6 by 10^6, counting distinct non-adjacent subsequences modulo 10^9+7, maximum product subarray and postfix evaluation.
- 2DSA interviewOne or two problems per hour, coded to the optimal approach. Examples: maximum sum of two non-overlapping subarrays of a given size, merge intervals, sibling nodes in a binary tree, Dijkstra and box stacking.
- 3CS fundamentals and system designHTTP vs HTTPS, database isolation levels, SQL transactions, OOP and what happens when you type a URL, then a design prompt such as a PUBG waiting queue or a Netflix-like streaming service.
- 4Hiring manager or HR roundProjects on your resume, sometimes more OS, networking and design for infrastructure roles, and a short HR conversation.
- The full Directi interview guide
Directi questions in this mock interview
Every one of them opens with Pro.
JavaScript round9
- Escape HTML and sanitize URLs to close XSS holes30 min
- Implement a binary-heap priority queue and merge k sorted lists35 min
- Implement binary search and its variants: insert position, first and last match, rotated arrays30 min
- Tokenize and evaluate arithmetic expressions without eval: precedence, unary minus and parentheses40 min
- Solve grid BFS problems: count islands and minutes until every orange rots40 min
- Find the sliding window maximum in O(n) with a monotonic deque40 min
- Plan metro routes: fewest stops with BFS and fewest line changes with Dijkstra50 min
- Trim a video with overlapping cuts: merge intervals and find the remaining length20 min
- Sort an array of 0s, 1s and 2s in one pass with a three-way partition20 min
React & UI round1
System design round1
How the mock interview works
- 1Step 1
Build your interview
Pick how many questions you want from each round, the level and a company. Google, Meta, Amazon, Microsoft and Flipkart are free with an account; every other company is in Pro.
- 2Step 2
Solve them against the clock
The room goes full screen: your questions down the left, the problem beside a real editor with tests, and one clock for the whole set. Open the questions in any order.
- 3Step 3
Answer the follow-ups
Then the interviewer asks follow-up questions. Answer each one out loud, open the model answer, and grade yourself as strictly as an interviewer would.
- 4Step 4
Read your debrief
Tests or design, follow-ups and time add up to a score out of 100 for each question, with the verdict a debrief would give. Every score is saved to your dashboard.