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

SDE - 1

D. E. Shaw India Private Limited
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
First, I started solving questions on coding platforms to gain hands-on experience with implementation. After that, I moved to more challenging problems and then focused on DSA practice. I also regularly participated in contests. Before interviews, I practiced questions on the coding platforms.
Application story
I asked one of my seniors for a referral, then I received an email from HR to apply through their career portal, and after that, I got the test link.
Why selected/rejected for the role?
I think I got rejected because of my branch, as the competition is tough in off-campus hiring and they mostly preferred students from the Circuits branch.
Preparation
Duration: 12 Months
Topics: Data Structures, OOP, OS, Networking, DBMS, Competitive Programming
Tip
Tip

Tip 1: Practice as many questions as needed until you gain enough confidence in yourself.
Tip 2: Try to practice the hardest questions you can.

Application process
Where: Referral
Eligibility: No criteria, (Salary Package - 25 LPA)
Resume Tip
Resume tip

Tip 1: Include some projects on your resume.
Tip 2: Do not include false information on your resume.

Interview rounds

01
Round
Hard
Online Coding Test
Duration90 minutes
Interview date28 Apr 2024
Coding problem2

1. Triangle

Moderate
25m average time
75% success
0/80
Asked in companies
Flipkart limitedD. E. Shaw India Private LimitedToluna India Pvt. Ltd.

You are given a triangular array/list 'TRIANGLE'. Your task is to return the minimum path sum to reach from the top to the bottom row.

The triangle array will have N rows and the i-th row, where 0 <= i < N will have i + 1 elements.

You can move only to the adjacent number of row below each step. For example, if you are at index j in row i, then you can move to i or i + 1 index in row j + 1 in each step.

For Example :
If the array given is 'TRIANGLE' = [[1], [2,3], [3,6,7], [8,9,6,1]] the triangle array will look like:

1
2,3
3,6,7
8,9,6,10

For the given triangle array the minimum sum path would be 1->2->3->8. Hence the answer would be 14.
Problem approach

The problem can be solved using a dynamic programming approach, where we update each cell in the triangle by adding the minimum possible path sum from the previous row.
1. Start from the second row and update each element based on the minimum path sum from the row above.
2. The first and last elements of each row can only come from one direction (left or right diagonal).
3. For other elements, take the minimum sum from the two possible previous positions.
4. After updating the triangle, the minimum value in the last row gives the answer.

Try solving now

2. Largest Subsequence

Moderate
0/80
Asked in company
D. E. Shaw India Private Limited

You are given an array of integers 'A' of size 'N' and a maximum score 'M'.


The score of a subsequence [ A[i1-1], A[i2-1] ... A[ik-1] ] is defined as the sum of ( i * k + A[i-1] ) for each element in the subsequence, where 'i' is the 1-based index of the element in the original array 'A' and 'k' is the length of the subsequence.


Your task is to find the length of the largest subsequence whose score is less than or equal to 'M'.


For Example :
Let 'N' = 4, 'A' = [3, 5, 1, 2] and 'M' = 20.
Let's check if a subsequence of length k = 2 is possible. To minimize the score, we choose the elements that have the smallest contribution ( i * k + A[i-1] ).
The contributions for k = 2 are:
For index 1 (value 3): 1 * 2 + 3 = 5
For index 2 (value 5): 2 * 2 + 5 = 9
For index 3 (value 1): 3 * 2 + 1 = 7
For index 4 (value 2): 4 * 2 + 2 = 10
The two smallest contributions are 5 and 7. The minimum score for a subsequence of length 2 is 5 + 7 = 12.
Since 12 <= 20, a subsequence of length 2 is possible.
Let's check for k = 3. The contributions would be ( i * 3 + A[i-1] ). The sum of the three smallest contributions is (1*3+3) + (3*3+1) + (2*3+5) = 6 + 10 + 11 = 27.
Since 27 > 20, a subsequence of length 3 is not possible.
Therefore, the answer is 2.
Problem approach

It is just a simple binary search. If we have the value of k = mid, just select the k-smallest i * k + a[i] and calculate the sum.

Try solving now
02
Round
Hard
Video Call
Duration60 minutes
Interview date15 May 2024
Coding problem2

1. Scramble String

Hard
15m average time
85% success
0/120
Asked in companies
PostmanAmazonInfo Edge India (Naukri.com)

You are given an integer ‘N’ and two strings ‘S’ and 'R' each having size = ‘N’. You can scramble the string ‘S’ to obtain string 'R' using the following operations:

1. If the length of the string is greater than 1:

  • Select any random index and split the string into two non-empty substrings. For e.g: if the string is ‘S’, then divide it into two non-empty substrings ‘A’ and ‘B’ such that ‘S’ = ‘A’ + ‘B’.
  • You can choose to swap the two substrings or keep them in the same order, i.e., after this operation string ‘S’ may become either ‘S’ = ‘A’ + ‘B’ or ‘S’ = ‘B’ + ‘A’.
  • Apply the first step recursively on each of the two strings ‘A’ and ‘B’.
  • 2. If the length of the string is equal to 1 then stop.

    Your task is to return true if 'R' is a scrambled string of ‘S’ else return false.

    Note:

    1. Both the strings are non-empty and are of the same length.
    
    2. You can apply the above operations any number of times on ‘S’.
    
    3. The operations can only be applied on the string ‘S’.
    
    4. ‘S’ and 'R' consist of lowercase letters only.
    
    Problem approach

    In order to solve this problem, we are using the Divide and Conquer approach. 
    Given two strings of equal length (say n+1), S1[0…n] and S2[0…n]. If S2 is a scrambled form of S1, then there must exist an index i such that at least one of the following conditions is true:
    1. S2[0…i] is a scrambled string of S1[0…i] and S2[i+1…n] is a scrambled string of S1[i+1…n].
    2. S2[0…i] is a scrambled string of S1[n-i…n] and S2[i+1…n] is a scrambled string of S1[0…n-i-1].

    Try solving now

    2. LRU Cache

    Design a data structure for LRU Cache.

    Problem approach

    The idea is to use an array to store nodes, where each node holds a key-value pair. The primary operations, get and put, have a time complexity of O(n) due to the need to search through the array. The size of the array will be equal to the given capacity of the cache.
    It's a standard problem—you can search for it on the internet and find a detailed solution and approach.

    Here's your problem of the day

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

    Skill covered: Programming

    What is recursion?

    Choose another skill to practice
    Similar interview experiences
    company logo
    SDE - 1
    3 rounds | 7 problems
    Interviewed by OYO
    4657 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    2 rounds | 5 problems
    Interviewed by Meesho
    6450 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 9 problems
    Interviewed by Salesforce
    3452 views
    0 comments
    0 upvotes
    company logo
    SDE - 1
    2 rounds | 4 problems
    Interviewed by D. E. Shaw India Private Limited
    319 views
    0 comments
    0 upvotes
    Companies with similar interview experiences
    company logo
    SDE - 1
    5 rounds | 12 problems
    Interviewed by Amazon
    114579 views
    24 comments
    0 upvotes
    company logo
    SDE - 1
    4 rounds | 5 problems
    Interviewed by Microsoft
    57825 views
    5 comments
    0 upvotes
    company logo
    SDE - 1
    3 rounds | 7 problems
    Interviewed by Amazon
    34961 views
    7 comments
    0 upvotes