Interview Intel · Capgemini

Capgemini coding interview
questions, leaked.

25 problems reported across recent Capgemini interviews. Top patterns: array, string, two pointers. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Capgemini's assessment leans heavily on array and string problems, with 11 of 25 problems focused on arrays alone. You're looking at mostly easy difficulty (13 out of 25), but don't sleep on Two Sum, Remove Duplicates from Sorted Array, and Valid Palindrome. The real trap is the two hard problems at the end, which test trapping rain water and similar multi-pattern challenges. If you blank mid-assessment, StealthCoder runs invisibly during screen share and surfaces a working solution in seconds, so you're never stuck. Focus your prep on arrays and two-pointers first, then string manipulation.

Tracked problems
25
Easy
13/ 52%
Medium
10/ 40%
Hard
2/ 8%

Top problems at Capgemini

leaked_problems.csv25 rows
#ProblemDiffFrequency
01Two SumEASY
100.0
02Reverse Degree of a StringEASY
95.7
03Number of Unique Subjects Taught by Each TeacherEASY
95.7
04Remove Duplicates from Sorted ArrayEASY
83.5
05Count Elements With Maximum FrequencyEASY
79.2
06Best Time to Buy and Sell StockEASY
73.9
07Add Two NumbersMEDIUM
67.1
08Longest Common PrefixEASY
67.1
09Palindrome NumberEASY
67.1
10Valid AnagramEASY
57.5
11Trapping Rain WaterHARD
57.5
12Find First and Last Position of Element in Sorted ArrayMEDIUM
57.5
13Valid PalindromeEASY
57.5
14Fibonacci NumberEASY
57.5
15Rotate ArrayMEDIUM
57.5
16Nth Highest SalaryMEDIUM
57.5
17Exchange SeatsMEDIUM
57.5
18Longest Happy StringMEDIUM
57.5
19Median of Two Sorted ArraysHARD
57.5
20Subarray Sum Equals KMEDIUM
57.5
21Balanced Binary TreeEASY
57.5
22Longest Substring Without Repeating CharactersMEDIUM
57.5
23Move ZeroesEASY
57.5
24Reverse Words in a StringMEDIUM
57.5
25Coin ChangeMEDIUM
57.5

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Capgemini OA. The proctor cannot see it. Screen share cannot detect it. Made for the engineer who has done the work but might still blank with a webcam pointed at him.

Get StealthCoder
Topic distribution
What this means

The distribution is skewed toward foundational data structures. Arrays dominate (11 problems), strings appear in 7, and two-pointers shows up in 6. Hash-table and dynamic-programming each hit 4 to 5 problems, so they're secondary but not optional. The difficulty curve is forgiving until the end. Those two hard problems (Trapping Rain Water, likely one other) will test your ability to combine array, two-pointers, and dynamic-programming thinking in one go. If you've drilled Remove Duplicates, Two Sum, and Best Time to Buy and Sell Stock, you'll recognize the patterns. But when you hit a wall on Trapping Rain Water mid-assessment, StealthCoder is your hedge. It reads the problem on screen and delivers a solution in real time, invisible to the proctor. Spend your study time on arrays first, then strings and two-pointers.

Companies with similar patterns

If you prepped for Capgemini, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Capgemini.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made for the engineer who has done the work but might still blank with a webcam pointed at him. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Capgemini interview FAQ

How many array problems should I solve before the assessment?+

At least 8 to 10. Arrays are 44 percent of Capgemini's problem set. Focus on Two Sum, Remove Duplicates from Sorted Array, Best Time to Buy and Sell Stock, and Rotate Array. These patterns repeat. Once you can solve them sub-two-minutes, you're ready.

Do I need to be strong at dynamic programming for this assessment?+

Not urgently. DP appears in only 4 problems and is mostly paired with array problems you'll see elsewhere. Best Time to Buy and Sell Stock is the most common DP-array hybrid. Drill that one, then move on to two-pointers and strings.

Is two-pointers worth drilling separately, or just within array problems?+

Drill it separately. Two-pointers shows up in 6 problems, including Valid Palindrome and Trapping Rain Water. Being able to move two pointers in sync without off-by-one errors saves time when the main challenge is algorithm logic, not pointer arithmetic.

What should I study first: strings or hash tables?+

Strings first. Seven of 25 problems involve strings, and most are easy difficulty. Valid Palindrome, Valid Anagram, and Longest Common Prefix are quick wins that build confidence. Hash-table problems often overlap with string and array problems anyway, so you'll see them again.

Should I worry about the two hard problems?+

Yes, but don't overweight them. Two out of 25 is manageable. If you solve the 13 easy problems cleanly and get 4 to 5 medium problems, you're well above passing. Use your last week to understand Trapping Rain Water's two-pointer and stack approach, then trust your basics.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Capgemini. StealthCoder is not affiliated with Capgemini.