Problem database last updated: June 20, 2025

QQuora logo

Quora Coding Interview Questions

17 problems · 6 Easy, 9 Medium, 2 Hard · Ranked #102 of 458

Difficulty breakdown

6 Easy

35% · avg 23%

9 Medium

53% · avg 59%

2 Hard

12% · avg 18%

Top topics

array
64.7%
hash-table
41.2%1.8x
math
29.4%2.3x
design
23.5%4.1x
heap-priority-queue
17.6%2.9x
string
17.6%

Interview profile

Based on 17 reported problems, Quora interviews are in line with industry averages - 12% Hard vs 18% overall. The majority (53%) 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, Quora puts unusual emphasis on design (23.5% of problems, 4.1x the industry average), prefix-sum (11.8% of problems, 3.5x the industry average), counting (11.8% of problems, 3.5x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (64.7%), hash-table (41.2%), math (29.4%), design (23.5%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 17 problems

Construct Target Array With Multiple Sums

Solve

You are given an array target of n integers. From a starting array arr consisting of n 1's, you may perform the following procedure :

HardVery Likely
arrayheap-priority-queue

Maximum Number of Words You Can Type

Solve

There is a malfunctioning keyboard where some letter keys do not work. All other keys on the keyboard work properly.

EasyVery Likely
hash-tablestring

Sort the Matrix Diagonally

Solve

A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column and going in the bottom-right direction until...

MediumVery Likely
arraysortingmatrix

Get Biggest Three Rhombus Sums in a Grid

Solve

You are given an m x n integer matrix grid​​​.

MediumVery Likely
arraymathsorting

Substrings of Size Three with Distinct Characters

Solve

A string is good if there are no repeated characters.

EasyVery Likely
hash-tablestringsliding-window

Finding Pairs With a Certain Sum

Solve

You are given two integer arrays nums1 and nums2. You are tasked to implement a data structure that supports queries of two types:

MediumVery Likely
arrayhash-tabledesign

1-bit and 2-bit Characters

Solve

We have two special characters:

EasyVery Likely
array

Find the K-Beauty of a Number

Solve

The k-beauty of an integer num is defined as the number of substrings of num when it is read as a string that meet the following conditions:

EasyVery Likely
mathstringsliding-window

Find Numbers with Even Number of Digits

Solve

Given an array nums of integers, return how many of them contain an even number of digits.

EasyVery Likely
arraymath

3Sum With Multiplicity

Solve

Given an integer array arr, and an integer target, return the number of tuples i, j, k such that i < j < k and arr[i] + arr[j] + arr[k] == target.

MediumVery Likely
arrayhash-tabletwo-pointers

Subtract the Product and Sum of Digits of an Integer

Solve

Given an integer number n, return the difference between the product of its digits and the sum of its digits.

EasyVery Likely
math

Range Frequency Queries

Solve

Design a data structure to find the frequency of a given value in a given subarray.

MediumVery Likely
arrayhash-tablebinary-search

Exam Room

Solve

There is an exam room with n seats in a single row labeled from 0 to n - 1.

MediumVery Likely
designheap-priority-queueordered-set

Number of Subarrays with Bounded Maximum

Solve

Given an integer array nums and two integers left and right, return the number of contiguous non-empty subarrays such that the value of the maximum array elemen...

MediumLikely
arraytwo-pointers

Insert Delete GetRandom O(1)

Solve

Implement the RandomizedSet class:

MediumLikely
arrayhash-tablemath

Binary Tree Cameras

Solve

You are given the root of a binary tree. We install cameras on the tree nodes where each camera at a node can monitor its parent, itself, and its immediate chil...

HardLikely
dynamic-programmingtreedepth-first-search

Subarray Sum Equals K

Solve

Given an array of integers nums and an integer k, return the total number of subarrays whose sum equals to k.

MediumLikely
arrayhash-tableprefix-sum

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 Quora interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Quora coding interview

Quora interviews focus heavily on array, hash-table, math 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. Quora 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 Quora ask in interviews?add

Quora has been reported to ask 17 distinct coding problems. The most common topics are array, hash-table, math. 6 are Easy difficulty, 9 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Quora coding interviews?add

Based on 17 reported problems, Quora interviews are in line with industry averages - 12% Hard vs 18% overall. 53% 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 Quora coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, hash-table, math. 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 Quora interview?

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

Simulate a Quora interview with AIarrow_forward