Problem database last updated: June 20, 2025

CCoursera logo

Coursera Coding Interview Questions

10 problems · 1 Easy, 4 Medium, 5 Hard · Ranked #148 of 458

Difficulty breakdown

1 Easy

10% · avg 23%

4 Medium

40% · avg 59%

5 Hard

50% · avg 18%

Top topics

array
50%
string
50%1.8x
math
40%3.2x
sorting
40%2.8x
dynamic-programming
30%1.5x
greedy
20%2.4x

Interview profile

Based on 10 reported problems, Coursera interviews are significantly harder than average - 50% Hard vs 18% across all companies.

Compared to the industry average, Coursera puts unusual emphasis on counting (20% of problems, 6x the industry average), math (40% of problems, 3.2x the industry average), sorting (40% of problems, 2.8x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (50%), string (50%), math (40%), sorting (40%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 10 problems

Text Justification

Solve

Given an array of strings words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justifie...

HardVery Likely
arraystringsimulation

N-th Tribonacci Number

Solve

The Tribonacci sequence Tn is defined as follows:

EasyVery Likely
mathdynamic-programmingmemoization

Special Binary String

Solve

Special binary strings are binary strings with the following two properties:

HardVery Likely
stringdivide-and-conquersorting

Number of Music Playlists

Solve

Your music player contains n different songs. You want to listen to goal songs (not necessarily different) during your trip. To avoid boredom, you will create a...

HardVery Likely
mathdynamic-programmingcombinatorics

Minimum Moves to Equal Array Elements

Solve

Given an integer array nums of size n, return the minimum number of moves required to make all array elements equal.

MediumVery Likely
arraymath

Minimum Increment to Make Array Unique

Solve

You are given an integer array nums. In one move, you can pick an index i where 0 <= i < nums.length and increment nums[i] by 1.

MediumVery Likely
arraygreedysorting

Reaching Points

Solve

Given four integers sx, sy, tx, and ty, return true if it is possible to convert the point (sx, sy) to the point (tx, ty) through some operations, or false othe...

HardVery Likely
math

Rank Teams by Votes

Solve

In a special ranking system, each voter gives a rank from highest to lowest to all teams participating in the competition.

MediumVery Likely
arrayhash-tablestring

Search Suggestions System

Solve

You are given an array of strings products and a string searchWord.

MediumLikely
arraystringbinary-search

Wildcard Matching

Solve

Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '' where:

HardLikely
stringdynamic-programminggreedy

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

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Coursera coding interview

Coursera interviews focus heavily on array, string, 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. Coursera 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 Coursera ask in interviews?add

Coursera has been reported to ask 10 distinct coding problems. The most common topics are array, string, math. 1 are Easy difficulty, 4 are Medium, and 5 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Coursera coding interviews?add

Based on 10 reported problems, Coursera interviews are significantly harder than average - 50% Hard vs 18% across all companies. 40% 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 Coursera coding interview?add

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

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

Simulate a Coursera interview with AIarrow_forward