0 day streak

Mphasis coding interview questions

Service and IT India

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Second Largest Element in an ArraySorting Easy Arrays & Hashing Nutanix, Rakuten, Morgan Stanley +13 Solve
Reverse StringTwo Pointer Easy Arrays & Hashing Nvidia, Snowflake, Electronic Arts +37 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
Sort an ArrayMerge Sort Like Approach Medium Arrays & Hashing Apple, Confluent, Salesforce +27 Solve
Sort ColorsDutch National Flag Medium Arrays & Hashing Microsoft, Nvidia, Expedia Group +43 Solve
Linked List CycleSlow Fast Pointers Easy Linked List Microsoft, Apple, Nvidia +67 Solve
Binary Tree Level Order TraversalTraversals Medium Trees & BST Microsoft, Apple, Netflix +24 Solve
Ransom NoteHashing Easy Arrays & Hashing Spotify, Anduril, Tripadvisor +2 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +81 Solve
N-Queens2D Matrix Hard Recursion & Backtracking Netflix, TikTok (ByteDance), Elastic +17 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Amazon, Microsoft, Apple +79 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Coin ChangeKnapsack Medium Dynamic Programming Google, Amazon, Microsoft +55 Solve
Fibonacci Number1D DP Easy Dynamic Programming Spotify, Instacart, Zillow +38 Solve
Also reported, being added to AlgoRung (12)

Merge two sorted arrays without duplicates · Armstrong Number · Sum of Digits of a Number · Print prime numbers in a range · Check if a Number is Prime · Dijkstra's shortest path from a source · Search in a nearly sorted array · Print 1 to N and back to 1 with a single loop · Print a circular seating order starting from a given person · Print a number triangle pattern · Print a word N times without a loop · Reverse words in a sentence

Questions people ask

What coding questions does Mphasis ask most?

Second Largest Element in an Array, Reverse String, Longest Palindromic Substring, Sort an Array, Sort Colors, Linked List Cycle, Binary Tree Level Order Traversal, Ransom Note.

Which topics come up in Mphasis coding rounds?

arrays, strings, linked list, sorting, math, trees.

How hard are Mphasis coding questions?

Of the reported questions, 7 are easy, 6 medium and 1 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.