# Capgemini Coding Interview Questions

> 36 DSA problems asked in Capgemini coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/capgemini
Last updated: 2026-11-28

36 DSA problems tagged as asked in Capgemini coding interviews and online assessments. Below are all 36: 18 easy, 16 medium and 2 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Capgemini DSA problems, easiest first

1. [Balanced Binary Tree](https://www.internhack.in/learn/dsa/problem/balanced-binary-tree) (Easy)
2. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
3. [Chunk Array](https://www.internhack.in/learn/dsa/problem/chunk-array) (Easy)
4. [Contains Duplicate](https://www.internhack.in/learn/dsa/problem/contains-duplicate) (Easy)
5. [Count Elements With Maximum Frequency](https://www.internhack.in/learn/dsa/problem/count-elements-with-maximum-frequency) (Easy)
6. [Find the Index of the First Occurrence in a String](https://www.internhack.in/learn/dsa/problem/find-the-index-of-the-first-occurrence-in-a-string) (Easy)
7. [Intersection of Two Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays) (Easy)
8. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
9. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
10. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
11. [Number of Unique Subjects Taught by Each Teacher](https://www.internhack.in/learn/dsa/problem/number-of-unique-subjects-taught-by-each-teacher) (Easy)
12. [Palindrome Number](https://www.internhack.in/learn/dsa/problem/palindrome-number) (Easy)
13. [Plus One](https://www.internhack.in/learn/dsa/problem/plus-one) (Easy)
14. [Remove Duplicates from Sorted Array](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-array) (Easy)
15. [Reverse Degree of a String](https://www.internhack.in/learn/dsa/problem/reverse-degree-of-a-string) (Easy)
16. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
17. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
18. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
19. [Add Two Numbers](https://www.internhack.in/learn/dsa/problem/add-two-numbers) (Medium)
20. [Coin Change](https://www.internhack.in/learn/dsa/problem/coin-change) (Medium)
21. [Container With Most Water](https://www.internhack.in/learn/dsa/problem/container-with-most-water) (Medium)
22. [Exchange Seats](https://www.internhack.in/learn/dsa/problem/exchange-seats) (Medium)
23. [Find First and Last Position of Element in Sorted Array](https://www.internhack.in/learn/dsa/problem/find-first-and-last-position-of-element-in-sorted-array) (Medium)
24. [Group Anagrams](https://www.internhack.in/learn/dsa/problem/group-anagrams) (Medium)
25. [Longest Consecutive Sequence](https://www.internhack.in/learn/dsa/problem/longest-consecutive-sequence) (Medium)
26. [Longest Happy String](https://www.internhack.in/learn/dsa/problem/longest-happy-string) (Medium)
27. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
28. [Lowest Common Ancestor of a Binary Search Tree](https://www.internhack.in/learn/dsa/problem/lowest-common-ancestor-of-a-binary-search-tree) (Medium)
29. [Minimize Maximum Pair Sum in Array](https://www.internhack.in/learn/dsa/problem/minimize-maximum-pair-sum-in-array) (Medium)
30. [Reverse Integer](https://www.internhack.in/learn/dsa/problem/reverse-integer) (Medium)
31. [Rotate Array](https://www.internhack.in/learn/dsa/problem/rotate-array) (Medium)
32. [Second Highest Salary](https://www.internhack.in/learn/dsa/problem/second-highest-salary) (Medium)
33. [Sort Colors](https://www.internhack.in/learn/dsa/problem/sort-colors) (Medium)
34. [Subarray Sum Equals K](https://www.internhack.in/learn/dsa/problem/subarray-sum-equals-k) (Medium)
35. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
36. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)

## Prepare for the rest of the Capgemini process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
