Filter interviews by
I appeared for an interview before Sep 2020.
Round duration - 75 minutes
Round difficulty - Medium
2 coding questions
Given a binary tree with 'N' nodes, verify whether this tree is a Binary Search Tree (BST). Return true if it is a BST and false otherwise.
A Binary Search ...
Verify if a given binary tree is a Binary Search Tree (BST) or not.
Check if the left subtree of a node contains only nodes with values less than the node's value.
Check if the right subtree of a node contains only nodes with values greater than the node's value.
Ensure that both the left and right subtrees are also binary search trees.
Return true if the tree is a BST, false otherwise.
Handle cases with duplicate elements
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.
Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.
Update the head of the reversed linked list as the last node encountered during the reversal process.
Round duration - 45 minutes
Round difficulty - Medium
Given a binary tree with N
nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true
; otherwise, return false
.
A binary search tree (BST)...
Validate if a binary tree is a Binary Search Tree (BST) or not.
Check if the left subtree of a node contains only nodes with data less than the node's data.
Check if the right subtree of a node contains only nodes with data greater than the node's data.
Ensure that both the left and right subtrees are also binary search trees.
Traverse the tree in an inorder manner and check if the elements are in sorted order.
Use recursio
Tip 1 : Practice more.
Tip 2 : Solve questions on Coding ninjas and Leetcode.
Tip 3 : Make good projects.
Tip 1 : Keep it short.
Tip 2 : Mention your projects in brief.
I appeared for an interview before Sep 2020.
Round duration - 75 minutes
Round difficulty - Easy
Smooth platform of Hackerrank.
Nice user interface.
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node.
Update the head of the reversed linked list as the last node encountered.
Ensure to handle edge cases like empty list or single node list.
Time complexity should be O(N) and space complexity should be O(1).
Tip 1 : Do at-least 2 projects.
Tip 2 : Practice on coding ninjas.
Tip 1 : Mention if you have any experience in past.
Tip 2 : Put your competitive profiles URL.
I appeared for an interview before Sep 2020.
Round duration - 75 minutes
Round difficulty - Hard
It was a coding round on Hackerrank.
Given a binary tree with N
nodes, determine whether the tree is a Binary Search Tree (BST). If it is a BST, return true
; otherwise, return false
.
A binary search tree (BST)...
Validate if a binary tree is a Binary Search Tree (BST) based on given properties.
Check if the left subtree of a node contains only nodes with data less than the node's data.
Verify if the right subtree of a node contains only nodes with data greater than the node's data.
Ensure that both the left and right subtrees are also binary search trees.
Traverse the tree in level order form and compare the elements to validate if
Given a singly linked list of integers, return the head of the reversed linked list.
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed link...
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to create the reversed linked list.
Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.
Ensure to update the head of the reversed linked list at the end.
Example: Input: 1 -> 2 -> 3 -> 4 -> NULL, Output: 4 ->
Tip 1 : Practice on gfg
Tip 2 : Compete on codechef
Tip 3 : Learn DSA
Tip 1 : Mention all projects
Tip 2 : Don't write anything that you don't know
I appeared for an interview before Sep 2020.
Round duration - 90 minutes
Round difficulty - Medium
It was conducted in the evening at around 7:00 p.m.
The hackerrank environment is clearly the best for conducting coding exams as it provides a decent interface for debugging and testing purposes.
There were 3 questions- 1 of easy level and 2 of medium level.
Determine if an array contains a Pythagorean triplet by checking whether there are three integers x, y, and z such that x2 + y2 = z2 within the array.
The first lin...
Detect if an array contains a Pythagorean triplet by checking if x^2 + y^2 = z^2.
Iterate through all possible triplets of numbers in the array and check if they form a Pythagorean triplet.
Use a nested loop to generate all possible combinations of three numbers from the array.
Check if the sum of squares of two numbers is equal to the square of the third number.
You are given 'a' balls of type 'A', 'b' balls of type 'B', and 'c' balls of type 'C'. Determine the total number of ways to arrange these balls in a straight line so that no...
The problem involves arranging balls of different types in a straight line without having two adjacent balls of the same type.
Use recursion to try all possible arrangements while keeping track of the previous ball type.
Handle edge cases where one or more types of balls have a count of 0.
Consider using dynamic programming to optimize the solution by storing intermediate results.
For the given example input (2 1 1), the o...
Given three strings A, B, and C, the task is to determine the length of the longest common subsequence across these three strings.
A subsequence ...
Find the length of the longest common subsequence among three strings.
Use dynamic programming to solve this problem efficiently.
Create a 3D array to store the lengths of common subsequences.
Iterate through the strings to fill the array and find the longest common subsequence length.
Round duration - 60 minutes
Round difficulty - Easy
The round was conducted on CodePair platform which provides a IDE along with a video call for interviews.
There were 2 interviewers and both were friendly.
I was first asked about the various subjects I have studied in my curriculum. Then I was asked about my favourite programming language to which I answered Python.
After this, they asked various confusing questions based on function calling, argument passing and pass by object reference concept in Python.
Then they asked about the implementation of dictionary in Python and wanted me to design one with the help of lists(arrays) and optimize its search, add and delete operations. (Could be done with hashing and probing).
Then they asked questions from subjects like Computer Architecture and Theory of Computation (Basic questions were asked so you should just remember the key topics in the subject).
You are provided with a linked list of integers. Your task is to implement a function that deletes a node located at a specified position 'POS'.
The first line co...
Implement a function to delete a node from a linked list at a specified position.
Traverse the linked list to find the node at the specified position.
Update the pointers of the previous and next nodes to skip the node to be deleted.
Handle cases where the position is at the beginning or end of the linked list.
Ensure to free the memory of the deleted node to avoid memory leaks.
Tip 1 : For an intern position in any big company, the most important thing is practicing data structures. Solve as many questions as you can on platforms like Coding Ninjas. First start picking up questions topic-wise and once you gain a decent confidence in every topic, start hitting harder questions randomly on various platforms. (Practice a minimum of 300 questions).
Tip 2 : If you are stuck at solving any question, instead of looking up for a code solution try to read discussions and see various approaches people are applying. This will surely make you prepared for the way in which the interviews are designed. Always keep a clock ticking while solving a problem as spending too much time while practicing surely makes you slow in the Online Tests and Interviews.
Tip 3 : Again specifically for internship preparation, focus mainly on the subjects that have been taught to you till now. As in many colleges Database Management, Operating Systems and Computer Networks are not taught till the 4th semester so you could easily focus on subjects in your curriculum. OOPS concepts are very important!
Tip 1 : In On-Campus internship drives it is generally not required to have a very charming resume with a load of projects as the companies understand the candidate as a 4th semester student.
Tip 2 : But still if there is even a single decent project genuinely build by the student then it is more than sufficient.
DE Shaw interview questions for popular designations
I appeared for an interview before Apr 2021.
Round duration - 90 Minutes
Round difficulty - Medium
This round had 3 coding questions to be solved under 90 minutes. I found the questions to be of Easy to Medium level of difficulty and anyone who has practised enough from LeetCode or CodeStudio would be able to pass this round.
You are provided with a number of stairs, and initially, you are located at the 0th stair. You need to reach the Nth stair, and you can climb one or tw...
The problem involves finding the number of distinct ways to climb N stairs by taking 1 or 2 steps at a time.
Use dynamic programming to solve the problem efficiently.
The number of ways to reach the Nth stair is the sum of the number of ways to reach the (N-1)th stair and the (N-2)th stair.
Handle base cases for N=0 and N=1 separately.
Apply modulo operation to avoid overflow while calculating the result.
Consider using mem...
You are provided with an array ARR
of positive integers. Each integer represents the number of liters of water in a bucket. The goal is to make the liters of water in ...
Given an array of water buckets, find the minimum liters of water to remove to make all buckets equal.
Iterate through the array to find the maximum frequency of a water amount
Calculate the total liters to be removed by subtracting the maximum frequency from the total number of buckets
Return the total liters to be removed as the answer
Develop a program to determine the number of '1's in the binary form of a given integer.
The input consists of a single line containing an integer N.
The outpu...
Count the number of '1's in the binary form of a given integer.
Convert the given integer to binary representation
Count the number of '1's in the binary representation
Return the count of '1's as output
Round duration - 60 Minutes
Round difficulty - Medium
In this round, the interviewer asked me 2 coding questions in which I was expected to first explain my approach with proper complexity analysis and then code up the solution. These questions were then followed by 2 puzzles to check my overall aptitude.
Prateek is a kindergarten teacher with a mission to distribute candies to students based on their performance. Each student must get at least one candy, and if two s...
The task is to distribute candies to students based on their performance while minimizing the total candies distributed.
Create an array to store the minimum candies required for each student.
Iterate through the students' ratings array to determine the minimum candies needed based on the adjacent ratings.
Consider both left-to-right and right-to-left passes to ensure fair distribution.
Calculate the total candies required...
You are given a binary tree with 'N' integer nodes. Your task is to determine whether this binary tree is a Binary Search Tree (BST).
A Binary Search Tr...
Validate if a given binary tree is a Binary Search Tree (BST) or not.
Check if the left subtree of a node contains only nodes with data less than the node's data
Check if the right subtree of a node contains only nodes with data greater than the node's data
Recursively check if both left and right subtrees are also binary search trees
Round duration - 30 Minutes
Round difficulty - Easy
This was a Technical Cum HR round where I was first asked some basic SQL related concepts and then we discussed
about my expectations from the company , learnings and growth in the forthcomig years. I would suggest be honest and
try to communicate your thoughts properly in these type of rounds to maximise your chances of getting selected.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
Get interview-ready with Top DE Shaw Interview Questions
I appeared for an interview in Sep 2020.
Round duration - 75 Minutes
Round difficulty - Medium
The round consisted of around 25 MCQs and 2 coding questions. MCQs were based on Assertion and Reasoning, Logical Reasoning, and data manipulation. The questions were of medium level and around 30-35 minutes were allotted for this section. The coding part consisted of one easy ad-hoc question and one question based on Dynamic Programming.
Given a square chessboard of size 'N x N', determine the minimum number of moves a Knight requires to reach a specified target position from its initial position...
Round duration - 60 Minutes
Round difficulty - Medium
After the coding round, around 15 candidates were selected for the process. This was a F2F interview organized by the Placement Cell of the college. The interviewers were mainly checking the problem-solving skills of the candidates.
You are given a sorted array consisting of ‘N’ distinct integers, forming a nearly complete Arithmetic Progression, except for one missing element. You...
Round duration - 30 Minutes
Round difficulty - Easy
After the Tech-1 round, ~10 candidates were shortlisted for the HR Round. This was organized by the Placement Cell of the college, on the campus.
Tip 1 : Focus on problem-solving rather than projects.
Tip 2 : Puzzles are often asked, prepare them well.
Tip 1 : Include good projects
Tip 2 : Keep the subjects you are well prepared with. They go deep into concepts.
I appeared for an interview before Sep 2020.
Round duration - 95 Minutes
Round difficulty - Easy
The complete test was Audio and Video Proctored.
The test was divided into 3 sections:
1) Aptitude: (14 MCQs in 28 minutes)
2) Technical: (12 MCQs in 17 minutes)
3) coding: (2 questions - first in 20 minutes, second in 30 minutes)
You are provided with an array, ARR
, of positive integers. Each integer represents the number of liters of water in a bucket. The goal is to make the water volume in each bucket ...
Find the minimum amount of water to be removed to equalize water in buckets.
Iterate through the array to find the average water level.
Calculate the total amount of water that needs to be removed to equalize the buckets.
Keep track of the excess water in each bucket and sum them up to get the final result.
You are given a binary tree consisting of 'N' unique nodes and a start node where the burning will commence. The task is to calculate the time in minutes required to completely b...
Calculate the time in minutes required to completely burn a binary tree starting from a given node.
Start burning from the given node and spread fire to adjacent nodes each minute
Track the time taken for each node to burn and return the maximum time taken
Use a queue to keep track of nodes to be burned next
Tip 1 : Strengthen DSA skills initially, know the basics and understand the working of different data structures
Tip 2 : Solve atleast 300 Questions from websites like leetcode and Hackerrank
Tip 3 : Learn to implement them and enhance your coding skills. Make mistakes and learn from them instead of just cramming everything before practicing.
Tip 4 : To enhance coding skills, try your best to crack a question instead of giving up and looking at the solution..this will improve your problem-solving skills.
Tip 5 : It's a must to do the standard coding questions under every category of data structure and algorithms
Tip 6 : To study the topics and practice coding questions refer to GeeksforGeeks and regularly take part in coding contests.
Tip 7 : Be thorough with OOPs, DBMS, and the technologies on which you have worked for the interview.
Tip 8 : Have at least 2 projects in your resume and make sure you can answer the questions related to them.
Tip 9 : For HR interviews prepare questions, prepare questions such as introduce yourself, your strengths, your weakness.
Confidence is the key you need to be an expert in. I was not aware of some things the interviewer asked during my interviews. But due to my confidence, he skipped that part.
Tip 10 : Do all the questions from the book 'cracking the coding interview'
Tip 1 : Make sure your resume fits everything into a single page.
Tip 2 : Have at least 2 projects on your resume.
Tip 3 : Only Mention only those technical skills that you are confident in. Do not put false things on your resume.
Tip 4 : Mention the work you have done during your internships.
Tip 5 : Include an objective in your resume.
I applied via Campus Placement and was interviewed before Nov 2020. There were 3 interview rounds.
Code to reverse a binary search tree (BST)
Traverse the BST in post-order
Swap the left and right child of each node
Return the root node of the reversed BST
To create a pointer array of strings:
Declare a pointer array variable with the desired size
Allocate memory for each string in the array using malloc
Assign the memory address of each string to the corresponding array element
posted on 6 May 2021
Depreciation reduces the value of assets over time, impacting financial statements.
Depreciation is a non-cash expense that reduces the value of assets on the balance sheet.
It is recorded on the income statement and reduces net income.
Depreciation can impact financial ratios such as return on assets and debt-to-equity.
Different methods of depreciation can be used, such as straight-line or accelerated.
Depreciation can al...
Top trending discussions
Some of the top questions asked at the DE Shaw interview -
The duration of DE Shaw interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 77 interviews
Interview experience
based on 154 reviews
Rating in categories
Analyst
165
salaries
| ₹13 L/yr - ₹32 L/yr |
Senior Analyst
127
salaries
| ₹10.1 L/yr - ₹38 L/yr |
Manager
70
salaries
| ₹14 L/yr - ₹60 L/yr |
Associate
56
salaries
| ₹8 L/yr - ₹28.8 L/yr |
Project Lead
53
salaries
| ₹25 L/yr - ₹94 L/yr |
Morgan Stanley
Citadel
Blackrock
AQR Capital Management