Mphasis Coding Questions: 13 Problems with Solutions
13 coding problems tagged Mphasis — 6 easy · 6 medium · 1 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 13
- By difficulty: 6 easy · 6 medium · 1 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
13 problems the CodeKairo catalogue tags as commonly asked in Mphasis's coding rounds — 6 easy, 6 medium and 1 hard — each judged by hidden tests in 13 languages. The most common topics among them are Math (5), Arrays (3) and Strings (3). Tagged for Mphasis and no other company: Network Delay Time. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Mphasis, which CodeKairo is not affiliated with.
Mphasis study plan by topic
All 13 problems tagged Mphasis over 2 weeks, about 6 h 20 min of solving, grouped by technique in the order they build on each other — Math, Two Pointers, Divide and Conquer and Number Theory and 5 more. It ends with the Mphasis — AMCAT Assessment mock.
Week 1: Math, Two Pointers, Divide and Conquer +5
12 problems on Math, Two Pointers, Divide and Conquer, Number Theory, Sieve of Eratosthenes, Backtracking, Breadth-First Search and Shortest Path, easiest first within each topic.
- Palindrome Number Easy
- Armstrong Number Easy
- Neon Number Easy
- Reverse String Easy
- Valid Palindrome Easy
- Sort Colors Medium
- Maximum Subarray Medium
- Add Digits Easy
- Count Primes Medium
- N-Queens II Hard
- Coin Change Medium
- Network Delay Time Medium
Week 2: Dynamic Programming
1 problem on Dynamic Programming.
Finally: the timed test
Sit the Mphasis — AMCAT Assessment mock under the clock — the coding problems are only one part of the round.
Mphasis test patterns
- Mphasis — AMCAT Assessment pattern guide and timed mock
The Mphasis recruitment process, round by round
All problems tagged Mphasis
Easy (6)
- Neon Number Math
- Armstrong Number Math
- Add Digits Math, Simulation, Number Theory
- Valid Palindrome String, Two Pointers
- Palindrome Number Math
- Reverse String Two Pointers, String
Medium (6)
- Count Primes Math, Sieve of Eratosthenes
- Network Delay Time Graph, Shortest Path, Heap
- Coin Change Array, Dynamic Programming, Breadth-First Search
- Sort Colors Array, Two Pointers, Sorting
- Longest Palindromic Substring String, Dynamic Programming
- Maximum Subarray Array, Dynamic Programming, Divide and Conquer
Hard (1)
- N-Queens II Backtracking, Bit Manipulation
Topics Mphasis asks most
- Math 5 problems
- Arrays 3 problems
- Strings 3 problems
- Two Pointers 3 problems
- Dynamic Programming 3 problems
- Sorting 1 problem
- Simulation 1 problem
- Divide and Conquer 1 problem
- Heap 1 problem
- Bit Manipulation 1 problem
- Number Theory 1 problem
- Sieve of Eratosthenes 1 problem