D.E.Shaw interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

D.E.Shaw
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I started preparing for DSA in my second semester and started with basic linear data structures and algorithms. Apart from DSA I aslo started studying core subjects like OOPS, OS, DBMS etc .
Application story
I have applied for the DE SHAW internship opportunity for girls in my second year. It was one of the first opportunities I found in which me being a second-year student was eligible to attend. I had directly applieded and the process was quite easy just they needed our resume.
Why selected/rejected for the role?
I got rejected for this role. I believe this happened because of my incomplete resume and less experience in giving interviews. It was the first time I was interviewing for any company and unfortunately, I had not given mock interviews also. My resume dint had projects in it which my interview in HR round specifically mentioned.
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, OOPS,OS, DBMS
Tip
Tip

Tip 1 : Make sure your resume contains some projects even in your first year also
Tip 2 : Start doing DSA as early as possible
Tip 3 : Give mock interviews with your friends

Application process
Where: Company Website
Eligibility: 8 CGPA
Resume Tip
Resume tip

Tip 1 : Do add good projects to your resume
Tip 2 : If you are in your first or 2nd year and don't have many achievements then add your previous achievements like olympiads or any other in your school life

Interview rounds

01
Round
Easy
Online Coding Interview
Duration120 minutes
Interview date11 Sep 2021
Coding problem3

It had 5 aptitude-based MCQs, 1 DSA-based MCQ, and 2 Coding Questions. The test as a whole can be categorized as somewhere between easy and medium and we almost had 2 hours to attempt the questions

1. Count Triplets

Easy
15m average time
85% success
0/40
Asked in companies
AmazonPayPalDunzo

You have been given an integer ‘X’ and a non-decreasing sorted doubly linked list with distinct nodes.

Your task is to return the number of triplets in the list that sum up to the value ‘X’.

Problem approach

This was famous 3 sum problem.I used hashmap to solve this.This approach uses extra space but is simpler than the two-pointers approach.
Just Run two loops outer loop from start to end and inner loop from i+1 to end. Create a hashmap or set to store the elements in between i+1 to n-1. So if the given sum is x, check if there is a number in the set which is equal to x – arr[i] – arr[j]. If yes print the triplet.

Try solving now

2. Magnet Array Problem

Easy
15m average time
85% success
0/40
Asked in company
D.E.Shaw

You have been given ‘N’ magnets which are placed linearly making a straight line. Each magnet experiences a repulsive force i.e magnets on the left repel to the right and magnets on the right repel to the left side. The force by which a magnet repels another magnet is equal to the reciprocal of the distance between them(1/d, where d is the distance between them).

You have been given an array “ARR” denoting the positions of the magnets on the x-axis, your task is to find all the equilibrium points on the x-axis.

Note :

An equilibrium point is a point where net force is 0 i.e repulsive force of left side magnets is equal to the repulsive force of right side magnets.

If there are N magnets, then there will be N - 1 equilibrium points.

The array “ARR” which denotes the positions of the magnets is in a sorted fashion. 
For example :
If ARR = {1, 3} , then the output will be 2.

Explanation: For two points, the mid-point will have a net force of 0 because the distance from the mid-point will be equal.
Problem approach

Define a function to calculate the net force at a particular point. This can be done as the definition of the function is given in the question(1/d, where d is the distance).
Take the required inputs
Traverse through the array and apply the binary search algorithm between two adjacent elements.
In the binary search algorithm, we fix a left and a right boundary and then calculate the middle value. We check the net force on the middle point.
If the net force on the middle point is greater than 0 then we move the search space towards the right.
If the net force on the middle point is less than 0 then we move the search space towards right.
If the net force is exactly zero we end the search and move on to find the next equilibrium position between the next pair.

Try solving now

3. DSA

How many comparisons are required to merge two sorted lists of sizes m and n into a
single sorted list of size m+n?
Consider a linked list of n elements . What is the time taken to insert an element at a
position that is pointed to by some pointer?
In many applications like social media, the app suggests the list of friends that a
particular user may know. It may be used on a system that has over a billion users.
Which algorithm is best to implement this feature?

02
Round
Medium
Video Call
Duration60 minutes
Interview date18 Sep 2021
Coding problem1

It was a fairly medium interview experience for me

1. Longest Subarray With No Repetitions

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

You are given an array ‘arr’. You are supposed to find the length of the longest subarray which does not contain any repeated numbers.

Problem approach

We will declare a map. In that map, we are going to store the value of sum and the current value of an index, if the condition satisfies. Take two variables and set sum to 0 and outputLength to 0. While traversing the array, we will pick each element of an array, and check if arr[i] is equal to 0, if it is found to be equal, we will add -1 to sum and store it to sum, else if we have not found to be 0, we will be adding the positive 1 to sum and store it to sum.

The reason behind that negative 1 and positive 1 is, we are pretending all 0’s to -1 and add them with 1, so we will get the 0 always. But we will check for positive 1 in sum, which indicates that we will have one extra 1 then the count of 0’s.

Suppose, we will take 1, 0, 1 if we are pretending 0 as -1, we will get that 0 with first 2 numbers, and with the third number, we can found that our condition is fulfilled. We got a sub-array of 1’s and 0’s with one extra count of 1 than 0. We get our condition satisfied. That’s why we will be looking for if the sum is equal to 1 in the next step of an algorithm and will be updating the length of outputLength. In the last, if the statement, if we get the new output length, we need to update the previous one with the current outputLength and we will return outputLength

Try solving now
03
Round
Medium
HR Round
Duration45 minutes
Interview date28 Sep 2021
Coding problem1

It was a fairly easy round and the interviewee was quite understanding

1. Basic HR Questions

If you are not able to complete your project within the deadline then how will you handle that situation?

If your team member is not performing well then how will you manage?

Explain your project

Problem approach

Tip 1 : Do give some mock interviews before your real interview
Tip 2 : Be confident and please don't lie 
Tip 3 : Add projects and discuss them clearly

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
SDE - Intern
1 rounds | 1 problems
Interviewed by D.E.Shaw
1096 views
0 comments
0 upvotes
SDE - Intern
2 rounds | 3 problems
Interviewed by D.E.Shaw
2236 views
1 comments
0 upvotes
SDE - Intern
3 rounds | 6 problems
Interviewed by D.E.Shaw
701 views
0 comments
0 upvotes
SDE - Intern
3 rounds | 6 problems
Interviewed by D.E.Shaw
865 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15605 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes