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

SDE - 1

Deloitte
upvote
share-icon
2 rounds | 6 Coding problems

Interview preparation journey

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

Tip 1 : Practice Atleast 30 Questions
Tip 2 : Ex- Do atleast 2 projects

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

Tip 1 : Do not put false things on resume.
Tip 2 : Mention projects on resume

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date9 Nov 2021
Coding problem5

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

1. 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

2. Sum Of Infinite Array

Moderate
35m average time
70% success
0/80
Asked in company
Deloitte

Given an array “A” of N integers and you have also defined the new array “B” as a concatenation of array “A” for an infinite number of times.

For example, if the given array “A” is [1,2,3] then, infinite array “B” is [1,2,3,1,2,3,1,2,3,.......].

Now you are given Q queries, each query consists of two integers “L“ and “R”(1-based indexing). Your task is to find the sum of the subarray from index “L” to “R” (both inclusive) in the infinite array “B” for each query.

Note :

The value of the sum can be very large, return the answer as modulus 10^9+7.
Try solving now

3. 4 Sum II

Moderate
0/80
Asked in companies
Hewlett Packard EnterpriseAmazonMicrosoft

You are given 4 arrays 'ARR1’, 'ARR2’, 'ARR3’, 'ARR4’, each consists of ‘N’ numbers. Your task is to return the number of tuples (i, j, k, l) satisfying the following conditions:

0 <= i,j,k,l < ‘N’
ARR1[i] + ARR2[j] + ARR3[k] + ARR4[l] = 0.
Try solving now

4. Find Student

Easy
10m average time
60% success
0/40
Asked in company
Deloitte

There are 'N' students standing in a line, and their heights are given. But the constraint is that the difference in heights of adjacent students does not exceed 'K', i.e.,

| height[i] - height[i+1] | <= K, where i ∈  (1, N-1)

Your task is to find the position of a student having height 'H'. If no such student is found, return -1.

Note:

Positions are counted starting from 0.
If two or more students have height equal to 'H', return the student with the minimum position.
Try solving now

5. Reduce Array

Easy
0/40
Asked in company
Deloitte

You are given an array ‘Arr’ of ‘N’ integers. Your task is to reduce each of the elements to zero. You can perform the following two operations on the array. Select an index ‘i’. If ‘Arr[i]’ is odd then replace it with ‘(Arr[i]-1) / 2’ else replace it with ‘Arr[i] / 2’.

Return the total number of operations required to reduce each element of the array to zero.

Example:

‘N’=5, ‘Arr’ = [2 , 5 , 6 , 3 , 1].
2 -> 1 -> 0
5 -> 2 -> 1 -> 0
6 -> 3 -> 1 -> 0
3 -> 1 -> 0
1 -> 0

Hence total operations will be 11.
Try solving now
02
Round
Easy
HR Round
Duration20 Minutes
Interview date7 Apr 2022
Coding problem1

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

1. Basic HR Questions

Describe a time when you experienced conflict with a coworker. How did you handle it?
How does this job compare to others you might be interviewing for?
What interests you about this role?
What critical feedback do you most often receive?

Problem approach

Tip 1 : Practice well
Tip 2 : Speak in front of mirror

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
company logo
SDE - 1
3 rounds | 1 problems
Interviewed by Deloitte
1904 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 4 problems
Interviewed by Deloitte
1871 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 6 problems
Interviewed by Deloitte
2456 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Deloitte
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115096 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58237 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35146 views
7 comments
0 upvotes