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

Java Developer

Deloitte
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 7months
Topics: Java, Data Structures, OOPS, System Design, MYSQL, Unix
Tip
Tip

Tip 1 : Be prepared with OOPs concept, four pillers
Tip 2 : Practice Atleast 150-250 Questions
Tip 3 : Do atleast 2-3 projects host it and mention the links in resume.

Application process
Where: Campus
Eligibility: 6CGPA
Resume Tip
Resume tip

Tip 1: mention some 2-3 descent projects on resume.
Tip 2: Do not add irelvent fields in the resume. content is more important rather then stylisng to resume

Interview rounds

01
Round
Easy
Video Call
Duration60minutes
Interview date16 Dec 2021
Coding problem2

Timing( was it late night) Not late but interview conducted in the evening
How was the environment? Google meet
Any other significant activity Checked my projects my contribution my past experiences
How the interviewer was? (If it was there any interview) Interviewer was check technical knowledge and personality test

1. Sort 0 1

Moderate
0/80
Asked in companies
Goldman SachsHCL TechnologiesMorgan Stanley

You have been given an integer array/list(ARR) of size N that contains only integers, 0 and 1. Write a function to sort this array/list. Think of a solution which scans the array/list only once and don't require use of an extra array/list.

Note:
You need to change in the given array/list itself. Hence, no need to return or print anything. 
Problem approach

import java.util.Arrays;
public class Solution { 

public static void sortZeroesAndOne(int[] arr) {
//Your code goes here
int len=arr.length;
int arr1[]=new int[len];
int c=0;
for (int i=0;i if(arr[i]!=0){
arr1[c]=arr[i];
c++;
}
}
for(int i=0;i arr[len-i-1]=arr1[i];
}


///solution 1
int nextzero=0;
int temp;
for(int i=0;i if(arr[i]==0){
temp=arr[nextzero];
arr[nextzero]=arr[i];
arr[i]=temp;
nextzero+=1;
}
}
}
}

Try solving now

2. Convert Bst To The Greater Sum Tree

Moderate
30m average time
70% success
0/80
Asked in companies
CultfitMathworksIntuit

You have been given a Binary Search Tree of integers. You are supposed to convert it to a greater sum tree such that the value of every node in the given BST is replaced with the sum of the values of all the nodes which are greater than the value of the current node in the tree.

A Binary Search Tree is a tree, whose internal nodes each store a value greater than all the values in the node's left subtree and less than those in its right subtree.

Note :

You need to modify the given tree only. You are not allowed to create a new tree.
For example:
For the given binary search tree

Example

11 will be replaced by {15 + 29 + 35 + 40}, i.e. 119.
2 will be replaced by {7 + 11 + 15 + 29 + 35 + 40}, i.e. 137.
29 will be replaced by {35 + 40}, i.e. 75.
1 will be replaced by {2 + 7 + 11 + 15 + 29 + 35 + 40}, i.e. 139.
7 will be replaced by {11 + 15 + 29 + 35 + 40}, i.e. 130.
15 will be replaced by {15 + 29 + 35 + 40}, i.e. 104.
40 will be replaced by 0 {as there is no node with a value greater than 40}.
35 will be replaced by {40}, i.e. 40.
Problem approach

public class Solution {
static int sum=0;
public static void replaceWithLargerNodesSum(BinaryTreeNode root) {
// Write your code here
if(root==null){
return;
}
replaceWithLargerNodesSum(root.right);
sum+=root.data;
root.data=sum;
replaceWithLargerNodesSum(root.left);

}
}

Try solving now
02
Round
Easy
HR Round
Duration30 minutes,
Interview date6 Jan 2022
Coding problem1

This round was TechnoManagerial round where both technical as well as HR questions where asked. Interviewer was very supportive and he just wanted to check your best and your problem solving skills and you personality.

1. Basic HR Questions

1. Why you are leaving this company?
2. what is toughest situation you have faced previous project.
3. what are thing you are expecting in your new company/project.
4. what are the things you does not want in next company.
5. Tell me a scenario where you were not agreed with the opinion of your team mate and how you have handled this situation.

Problem approach

Tip 1: You have answer in very positive manner answering each and every thing in so ideal way can also create you bad impression.
Tip 2:Dont tell about your previous arguments if any 
Tip 3: dont tell your opinions instead tell what HR wanted to hear from you.

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
Consulting Engineer
2 rounds | 2 problems
Interviewed by Deloitte
2957 views
0 comments
0 upvotes
company logo
Java Developer
3 rounds | 3 problems
Interviewed by Deloitte
5330 views
0 comments
0 upvotes
company logo
Salesforce Developer
3 rounds | 3 problems
Interviewed by Deloitte
0 views
0 comments
0 upvotes
company logo
Java Developer
3 rounds | 2 problems
Interviewed by Deloitte
4092 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Java Developer
3 rounds | 20 problems
Interviewed by Ernst & Young (EY)
9399 views
2 comments
0 upvotes
company logo
Java Developer
3 rounds | 4 problems
Interviewed by SAP Labs
3313 views
0 comments
0 upvotes
company logo
Java Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
7971 views
0 comments
0 upvotes