Capgemini Coding Round + LeetCode
Easy Prep Kit
Section 1: Capgemini-style Coding Questions
1. Check if a String is Palindrome
2. Find Second Largest in Array
3. Print Fibonacci Series up to N terms
4. Count vowels and consonants in a string
5. Check if number is Armstrong
6. Reverse a String
7. Check Prime Number
8. Sum of digits
9. Sort an Array using Bubble Sort or Selection Sort
10. Find GCD of Two Numbers
11. Count frequency of characters in a string
12. Find maximum and minimum in an array
13. Reverse an array in-place
14. Calculate factorial using recursion
15. Count the number of words in a sentence
16. Print pattern using nested loops (e.g., triangle/star pattern)
17. Find duplicates in an array
18. Remove vowels from a string
19. Find the sum of even and odd numbers separately in an array
20. Merge two arrays and sort them
Section 2: 15 LeetCode Easy DSA Problems (with links)
1. 1. Two Sum - [Link]
2. 2. Valid Palindrome - [Link]
3. 3. Merge Sorted Array - [Link]
4. 4. Remove Duplicates from Sorted Array - [Link]
duplicates-from-sorted-array/
5. 5. Maximum Subarray - [Link]
6. 6. Best Time to Buy and Sell Stock - [Link]
and-sell-stock/
7. 7. Move Zeroes - [Link]
8. 8. Intersection of Two Arrays II - [Link]
arrays-ii/
9. 9. Reverse String - [Link]
10. 10. Valid Anagram - [Link]
11. 11. First Unique Character in a String - [Link]
character-in-a-string/
12. 12. Ransom Note - [Link]
13. 13. Contains Duplicate - [Link]
14. 14. Implement strStr() - [Link]
15. 15. Count and Say - [Link]