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

Senior Analyst

Capegemini Consulting India Private Limited
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
From 1st year onward I started doing CP from basics as I was very new to the coding world and due to the good coding culture I get early exposure to CP from 2nd year I started doing web development.
Application story
It was an on-campus opportunity, and eligible students were asked to register themselves on the portal. All the assessments were conducted then interview.
Why selected/rejected for the role?
I was selected because I passed all test cases in the coding round. I was also fluent in communication skills that added to my numbers.
Preparation
Duration: 4 months
Topics: Dynamic programming, Graph, Tree, OOPS, DBMS, Operating system, Computer network, DSA
Tip
Tip

Tip 1 : Do at least 2 good projects and make an attractive resume mentioning all your skills in the best possible way(Don't include any False commitments)
Tip 2 : Practice easy to medium level coding questions from geeks for geeks or Leetcode.
Tip 3 : Prepare everything mentioned in your resume properly including Java, SQL.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1: Must know everything in the resume(don't put false things)
Tip 2: Not more than 1 page

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 mins
Interview date9 Apr 2022
Coding problem2

1. First Missing Positive

Moderate
18m average time
84% success
0/80
Asked in companies
DunzoHikeSamsung

You are given an array 'ARR' of integers of length N. Your task is to find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can have negative numbers as well.

For example, the input [3, 4, -1, 1] should give output 2 because it is the smallest positive number that is missing in the input array.

Problem approach

I approached this problem in three steps -
(i) Search all positive integers, starting from 1 in the given array. We may have to search at most n+1 numbers in the given array. So this solution takes O(n^2) in the worst case.

(ii) Used sorting to solve it in lesser time complexity. We can sort the array in O(nLogn) time. Once the array is sorted, then all we need to do is a linear scan of the array. So this approach takes O(nLogn + n) time which is O(nLogn).

(iii) I also suggested a solution using hashing. We can build a hash table of all positive elements in the given array. Once the hash table is built. We can look in the hash table for all positive integers, starting from 1. As soon as we find a number which is not there in hash table, we return it. This approach may take O(n) time on average, but it requires O(n) extra space.

Try solving now

2. Sort String with alternate lower upper.

Easy
15m average time
85% success
0/40
Asked in companies
AmdocsMAQ SoftwareCapegemini Consulting India Private Limited

Given a string ‘STR’ containing lowercase and uppercase letters. You need to sort the string so that the resulting string contains uppercase and lowercase letters at alternate positions but in sorted order.

Note
If any lowercase or uppercase letters remains left after alternate positioning, then append them at the last of the string in sorted order.
For Example
If the given string STR = “rDaBfS” then after sorting  STR = “aBfDrS”. In the sorted string, lowercase letters a,f,r, and uppercase letters B, D, S are in sorted order and alternate positions.
Problem approach

Tip 1 : Question is not that tough as it involved no logic it was pretty straightforward but felt a bit lengthy and need to handle cases like empty string and uppercase letters.
Tip 2 : Focus while you solve

Try solving now
02
Round
Medium
Video Call
Duration60 mins
Interview date15 Apr 2022
Coding problem2

1. Find All Triplets With Zero Sum

Moderate
30m average time
50% success
0/80
Asked in companies
MicrosoftFacebookDunzo

You are given an array Arr consisting of n integers, you need to find all the distinct triplets present in the array which adds up to zero.

An array is said to have a triplet {arr[i], arr[j], arr[k]} with 0 sum if there exists three indices i, j and k such that i!=j, j!=k and i!=k and arr[i] + arr[j] + arr[k] = 0.

Note :
1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then (2, -3, 1), (-3, 2, 1) etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
Problem approach

Sort the array
loop with 3 pointers - current(i) , left , right - calculate the sum
sum > 0. move right pointer closer
sum < 0. move left pointer away
sum = 0. add all 3 pointer's value to set
Here set is used to remove duplicate entry of values
Time Complexity 0(nlogn)-sorting + 0(n*n) ~~ O(n^2)
Space complexity - 0(n)

Try solving now

2. Delete Node In A Linked List

Easy
15m average time
80% success
0/40
Asked in companies
AdobeCIS - Cyber InfrastructureDell Technologies

You are given a Singly Linked List of integers and a reference to the node to be deleted. Every node of the Linked List has a unique value written on it. Your task is to delete that node from the linked list.

A singly linked list is a linear data structure in which we can traverse only in one direction i.e. from Head to Tail. It consists of several nodes where each node contains some data and a reference to the next node.

Note:

• The reference to the head of the linked list is not given.
• The node to be deleted is not a tail node.
• The value of each node in the Linked List is unique.
• It is guaranteed that the node to be deleted is present in the linked list.

A sample Linked List-

singly_linkedlist

Problem approach

Copy data of the next node to the current node
It's clear that The task question is wrong. You cannot delete the node.
Basically, instead of ONLY deleting the provided node we are not just doing it but CORRUPT the next node. It's a bad question wording (without clarification about options) and a bad solution. In my opinion, the correct answer for the interview is: "You CANNOT do this by having the node reference only. BUT we can make very similar operation by corrupting the next node. Although it's possible I don't recommend this solution for production applications.

Try solving now
03
Round
Easy
HR Round
Duration45 mins
Interview date19 Apr 2022
Coding problem1

1. Basic HR Questions

Tell me about yourself.
Why do you want to join Acko rather than big Tech MNCs?
What are your hobbies?

Problem approach

Tip 1: Always show them you are only focused on learning.
Tip 2: Also make them feel that you will stay longer in their company

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
Senior Analyst
3 rounds | 4 problems
Interviewed by Capegemini Consulting India Private Limited
659 views
0 comments
0 upvotes
Software Engineer
2 rounds | 3 problems
Interviewed by Capegemini Consulting India Private Limited
0 views
0 comments
0 upvotes
SDE - 1
2 rounds | 3 problems
Interviewed by Capegemini Consulting India Private Limited
472 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
Senior Analyst
4 rounds | 3 problems
Interviewed by Ernst & Young (EY)
3322 views
1 comments
0 upvotes
company logo
Senior Analyst
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
1082 views
0 comments
0 upvotes
company logo
Senior Analyst
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
1209 views
0 comments
0 upvotes