Compass Group interview experience Real time questions & tips from candidates to crack your interview

Software Engineer

Compass Group
upvote
share-icon
4 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 10 months
Topics: Data Structures and Algorithms, Dynamic Programming, Object Oriented Programming, DBMS, Operating System
Tip
Tip

Tip 1 : Competitive Coding helps initially, later Leetcode, GFG
Tip 2 : Add at least 2 projects in your resume
 

Application process
Where: Referral
Eligibility: No
Resume Tip
Resume tip

Tip 1 : Add atleast two projects on Resume
Tip 2 : Study in depth from Resume and make your friend take your mock interview

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 Minutes
Interview date10 Dec 2020
Coding problem1

The round started at 8 PM. There was one question with several test cases and had to pass every test case in order to get a call for interview.

1. Nth Fibonacci Number

Easy
0/40
Asked in companies
HCL TechnologiesAccentureIBM

The n-th term of Fibonacci series F(n), where F(n) is a function, is calculated using the following formula -

    F(n) = F(n - 1) + F(n - 2), 
    Where, F(1) = 1, F(2) = 1


Provided 'n' you have to find out the n-th Fibonacci Number. Handle edges cases like when 'n' = 1 or 'n' = 2 by using conditionals like if else and return what's expected.

"Indexing is start from 1"


Example :
Input: 6

Output: 8

Explanation: The number is ‘6’ so we have to find the “6th” Fibonacci number.
So by using the given formula of the Fibonacci series, we get the series:    
[ 1, 1, 2, 3, 5, 8, 13, 21]
So the “6th” element is “8” hence we get the output.
Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date17 Dec 2020
Coding problem1

It was first round for 45mins and only one question was asked.

1. Sum Of Zeroes

Easy
10m average time
80% success
0/40
Asked in companies
RIVIGOCognizantSprinklr

You are given a binary matrix (it contains only 0s and 1s) with dimensions ‘N * M’. You need to find and return the sum of coverages of all zeros of the given matrix.

Coverage for a particular 0 is defined as the total number of ‘1s’ around it (i.e., immediate left, immediate right, immediate up, and immediate bottom positions).

Try solving now
03
Round
Easy
Video Call
Duration45 Minutes
Interview date17 Dec 2020
Coding problem1

It was again 45 min interview and after an intro we quickly jumped in coding.

1. Occurrence Of Each Word

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

You are given a string S of words. Your task is to count the occurrence of each word present in the string S. A word is a sequence of one or more non-space characters, and there can be multiple spaces between two words, and also there can be leading or trailing spaces in a string S.

For Example:
For the given string  “what we think we become”

“what”,” think”, and “become” occurs 1 time, and “we” occurs 2 times in the given string.
Try solving now
04
Round
Medium
Video Call
Duration45 minutes
Interview date17 Dec 2020
Coding problem2

It was an Technical + HR round. The interviewer was very understanding and he checked the overall knowledge of the subject.

1. OS Questions

What is difference betweeen thread and process?
What is deadlock?

2. Kth Smallest Element

Easy
15m average time
85% success
0/40
Asked in companies
SnapdealMicrosoftMedia.net

You are given an array of integers 'ARR' of size 'N' and another integer 'K'.


Your task is to find and return 'K'th smallest value present in the array.


Note: All the elements in the array are distinct.


Example
If 'N' is 5 and 'K' is 3 and the array is 7, 2, 6, 1, 9

Sorting the array we get 1, 2, 6, 7, 9

Hence the 3rd smallest number is 6.
Try solving now

Here's your problem of the day

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

Skill covered: Programming

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
1632 views
0 comments
0 upvotes
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
3716 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
1100 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
878 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 5 problems
Interviewed by Mindtree
11082 views
7 comments
0 upvotes
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7001 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
8503 views
1 comments
0 upvotes