Problem database last updated: June 20, 2025

DDirecti logo

Directi Coding Interview Questions

7 problems · 0 Easy, 4 Medium, 3 Hard · Ranked #201 of 458

Difficulty breakdown

0 Easy

0% · avg 23%

4 Medium

57% · avg 59%

3 Hard

43% · avg 18%

Top topics

array
71.4%
dynamic-programming
42.9%2.2x
tree
28.6%5.1x
depth-first-search
28.6%3.1x
math
14.3%
prefix-sum
14.3%4.3x

Interview profile

Based on 7 reported problems, Directi interviews are significantly harder than average - 43% Hard vs 18% across all companies. The majority (57%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Directi puts unusual emphasis on tree (28.6% of problems, 5.1x the industry average), depth-first-search (28.6% of problems, 3.1x the industry average), dynamic-programming (42.9% of problems, 2.2x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (71.4%), dynamic-programming (42.9%), tree (28.6%), depth-first-search (28.6%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 7 problems

Number of Sub-arrays With Odd Sum

Solve

Given an array of integers arr, return the number of subarrays with an odd sum.

MediumVery Likely
arraymathdynamic-programming

Min Cost to Connect All Points

Solve

You are given an array points representing integer coordinates of some points on a 2D-plane, where points[i] = [xi, yi].

MediumVery Likely
arrayunion-findgraph

Difference Between Maximum and Minimum Price Sum

Solve

There exists an undirected and initially unrooted tree with n nodes indexed from 0 to n - 1. You are given the integer n and a 2D integer array edges of length...

HardVery Likely
arraydynamic-programmingtree

Largest Submatrix With Rearrangements

Solve

You are given a binary matrix matrix of size m x n, and you are allowed to rearrange the columns of the matrix in any order.

MediumVery Likely
arraygreedysorting

Find the Winner of an Array Game

Solve

Given an integer array arr of distinct integers and an integer k.

MediumVery Likely
arraysimulation

Find Longest Awesome Substring

Solve

You are given a string s. An awesome substring is a non-empty substring of s such that we can make any number of swaps in order to make it a palindrome.

HardVery Likely
hash-tablestringbit-manipulation

Binary Tree Maximum Path Sum

Solve

A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequ...

HardLikely
dynamic-programmingtreedepth-first-search

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Directi interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Directi coding interview

Directi interviews focus heavily on array, dynamic-programming, tree problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Directi interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Directi ask in interviews?add

Directi has been reported to ask 7 distinct coding problems. The most common topics are array, dynamic-programming, tree. 0 are Easy difficulty, 4 are Medium, and 3 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Directi coding interviews?add

Based on 7 reported problems, Directi interviews are significantly harder than average - 43% Hard vs 18% across all companies. 57% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Directi coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, dynamic-programming, tree. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Directi interview?

Simulate a real Directi coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Directi interview with AIarrow_forward