Capegemini Consulting India Private Limited interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Capegemini Consulting India Private Limited
upvote
share-icon
2 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Get your reasoning skills strong
Tip 2 : Practice of aptitudeand coding questions

Application process
Where: Other
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Mark skills Bold letters
Tip 2 : mention projects on resume

Interview rounds

01
Round
Medium
Online Coding Test
Duration50 minutes
Interview date29 Dec 2021
Coding problem5

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Unequal Adjacent Elements

Moderate
25m average time
75% success
0/80
Asked in companies
WalmartHashedInTrilogy Innovations

You have been given an array/list ‘ARR’ of integers consisting of ‘N' integers. You need to rearrange ‘ARR’ so that no two adjacent elements are equal. You may return any valid rearrangement and it is guaranteed the answer exists.

Example :
Let’s say you have an array/list ‘ARR = [1,1,2,2]’. 

Then a valid rearrangement can be [1,2,1,2] or [2,1,2,1] such that no two adjacent elements are equal. [2,1,1,2] is an invalid arrangement because two adjacent elements are equal.
Problem approach

s1- The first test case

s2- The given array already satisfies the required condition. Here for each 

s23- The second test case

s4- There is no way to reorder the elements of the given array to satisfy the required condition.
The third test case

One possible reordering is [5, 2, 7, 2, 1].

Try solving now

2. Good Arrays

Moderate
20m average time
85% success
0/80
Asked in companies
AdobeOlaCapegemini Consulting India Private Limited

You are given an array ‘A’ of length ‘N’, you have to choose an element from any index in this array and delete it. After deleting the element you will get a new array of length ‘N’-1. Your task is to find the number of such arrays of length ‘N’-1 which are good.

Note :

An array is called good if the sum of elements in odd indexes is equal to the sum of elements in even indexes.

For Example :

In array A= [1 2 4 3 6], if we delete A[4]=6, we will get new array B= [1 2 4 3], where B[0] + B[2] = B[1] + B[3] = 5, which means array B is good.
Try solving now

3. One iteration

Easy
10m average time
90% success
0/40
Asked in companies
OracleUberAmazon

Alice loves to give challenging tasks to Bob. This time, Alice gave Bob an array ‘A’ of ‘N’ distinct integers and asked him to find the maximum sum Bob can make by taking two elements from this array. To make this challenging, Alice asked Bob to find the answer by traversing the array only once.

As always, Bob asked you to help him do the task by traversing the array only once.

Try solving now

4. Ninja And Trains

Hard
60m average time
40% success
0/120
Asked in companies
UberCodenationCapegemini Consulting India Private Limited

Ninja is given a few cities and few connected Trains. Each city has a specific size. Now due to bad weather, trains from certain cities get canceled. Given a value X, if the size of the city is less than X, then all incoming and outgoing trains from the station get canceled. Now Ninja’s task is to determine the maximum threshold value X such that trains from cities with a size less than X gets canceled, then there should exist a reachable component of cities in the network of size at least K. A subcomponent of the city network is considered to be a reachable component if all the cities in that network are connected, which implies all the trains are available from each other via direct or connecting trains.

Try solving now

5. Ninja And Numbers

Moderate
25m average time
75% success
0/80
Asked in companies
Google incDeloitteCapegemini Consulting India Private Limited

Ninja has a number ‘A’ containing ‘B’ digits. ‘A’ can be represented by a string ‘S’ where ‘S[i]’ denotes the ‘ith’ digit of ‘A’. You are also given an integer ‘K’.

Ninja thinks that a number is stable if the following condition is satisfied:

For every ‘ith’ digit where (0 <= ‘i’ <= ‘B-1’) ‘S[i] = S[i%K]’. Here, ‘X%Y’ represents the modulo operations. The remainder when ‘X’ is divided by ‘Y’.

Your task is to find the smallest number which is stable and whose value is greater than or equal to ‘A’. Zero-based indexing is used everywhere.

Example :
‘B’ = 4, ‘S’ = “4321”, ‘K’ = 3.
The given number is not stable as ‘S[3]’ is not the same as ‘S[0]’ but 3%3 = 0 same as 0%3. ‘S[3] = 1’ and ‘S[0] = 4’.  But the number “4324” is stable. As, for all ‘i’, ‘S[i]’ = ‘S[i%K]’ and “4324” is also greater than the given number. It can be proved that this is the best possible answer.
Hence, the answer is “4324”.
Try solving now
02
Round
Medium
HR Round
Duration30 Minutes
Interview date21 Jan 2022
Coding problem1

- Morning time
- Environment was good.
- No
- Interviewer was good

1. Basic HR Questions

- Tell me about yourself
How would you describe yourself?
Have you ever been terminated from a job?
What three factors do you attribute to your success in life?

Problem approach

Tip 1 : Communicate well with interviewer
Tip 2 : Think once then speak
Tip 3 : I practice with my brother for HR interviews

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Software Engineer
2 rounds | 3 problems
Interviewed by Capegemini Consulting India Private Limited
0 views
0 comments
0 upvotes
Software Engineer
2 rounds | 7 problems
Interviewed by Capegemini Consulting India Private Limited
677 views
0 comments
0 upvotes
Software Engineer
3 rounds | 5 problems
Interviewed by Capegemini Consulting India Private Limited
554 views
0 comments
0 upvotes
Software Engineer
3 rounds | 5 problems
Interviewed by Capegemini Consulting India Private Limited
569 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7977 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
10148 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4448 views
1 comments
0 upvotes