Capgemini Coding Interview Questions

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 (Easy)
  2. Best Time to Buy and Sell Stock (Easy)
  3. Chunk Array (Easy)
  4. Contains Duplicate (Easy)
  5. Count Elements With Maximum Frequency (Easy)
  6. Find the Index of the First Occurrence in a String (Easy)
  7. Intersection of Two Arrays (Easy)
  8. Longest Common Prefix (Easy)
  9. Merge Two Sorted Lists (Easy)
  10. Move Zeroes (Easy)
  11. Number of Unique Subjects Taught by Each Teacher (Easy)
  12. Palindrome Number (Easy)
  13. Plus One (Easy)
  14. Remove Duplicates from Sorted Array (Easy)
  15. Reverse Degree of a String (Easy)
  16. Roman to Integer (Easy)
  17. Two Sum (Easy)
  18. Valid Anagram (Easy)
  19. Add Two Numbers (Medium)
  20. Coin Change (Medium)
  21. Container With Most Water (Medium)
  22. Exchange Seats (Medium)
  23. Find First and Last Position of Element in Sorted Array (Medium)
  24. Group Anagrams (Medium)
  25. Longest Consecutive Sequence (Medium)
  26. Longest Happy String (Medium)
  27. Longest Substring Without Repeating Characters (Medium)
  28. Lowest Common Ancestor of a Binary Search Tree (Medium)
  29. Minimize Maximum Pair Sum in Array (Medium)
  30. Reverse Integer (Medium)
  31. Rotate Array (Medium)
  32. Second Highest Salary (Medium)
  33. Sort Colors (Medium)
  34. Subarray Sum Equals K (Medium)
  35. Median of Two Sorted Arrays (Hard)
  36. Trapping Rain Water (Hard)

Prepare for the rest of the Capgemini process

Other companies