Directi SDE-2 Interview Experience
Last Updated :
19 Aug, 2019
There were total 2 telephonic rounds and 4 onsite rounds.
Telephonic Rounds:
Round 1
Given an array of Length N. You have to select two non overlapping K length subarrays from the given array such that the sum of elements of selected subarrays is maximum.
Given that 2*K <= N.
Example:
arr : 5 3 7 9 10 3 1 7 9 9 9 and k = 3
Here 2 subarrays will be 7, 9, 10 and 9, 9, 9
Round 2
Given an array of integers and a integer k, find number of subarrays for which median is >= k. If numbers of elements in arrays is even then median it median will be number which is present in index
array_size/2 - 1
.
Example:
input arr : [3, 6, 4, 5] and k = 4
Following are the subarrays with median >= k
[6]
[4]
[5]
[6, 4]
[4, 5]
[3 6 4]
[6, 4, 5 ]
[3, 6, 4, 5]
so here answer is 8.
Onsite Rounds:
Round 1
Book my show Low level Design.
Here we first discussed about the main entities and class, ticket booking flow. Then interviewer asked me write the code for locking seats with some expiry.
Round 2
In a tennis game player has to win
S sets and to win each set he/she has to win
T serves.
Given a list of serves win for a game, you have to find all possible combinations of T and S such that the input string is valid and there is a clear winner at the end of the string.
A denotes that player A wins the serve.
B denotes that player B wins the serve.
Example:
ABABA will have 2 combinations of T and S :
T=1, S = 3 : Here as T = 1 so first player who wins the serve will win one set. and as S = 3 so first player who wins 3 sets will win the game. So in this case A wins the game.
T = 3, S = 1 In this case A wins the set and hence wins the game as S = 1.
No other valid combinations of T and S are possible so answer is 2 in this case.
Round 3
Design chat messenger app such that if the message of user A has reached server then it should get first delivered to user B and then only user B can send his message.
We discussed regarding message flow and building the constraint on the client side or server-side.
Round 4
In this round we mainly discussed regarding my work and challenges in my project. We discussed some designs problem related to kafka.
Then interviewer asked me to build advertisement logic where we have N ads and k slots (k<N) and target is to make maximum profit.
Similar Reads
Airtel Interview Experience for SDE It was a on-campus drive from Airtel. This interview had two rounds. Round 1: Technical Round The experience for this round varied widely around my college. The questions varied from star pattern printing (Basic for-loop question) to Kruskal's Algorithm question (Minimum spanning tree question). The
1 min read
Cisco Interview Experience for SDE One online assessment round and four interviews were conducted. Every round was eliminatory. Core subjects like Networking and Operating systems are important for interviews as well as online assessment. Round 1: Online Assessment: 40+ MCQ consisting of aptitude, computer networks, operating systems
1 min read
Dream11 Interview Experience for SDE II Background With roughly 5 years of experience and based in Bengaluru, I embarked on the interview process for an SDE-2 role at Dream11. The journey began with a LinkedIn outreach from a recruiter and progressed to a series of interviews. Round 1: Coding AssessmentDate: March 29, 2024 Format: Virtual
2 min read
BlinkIt Interview Experience For SDE My journey to securing an interview at a prestigious company began with an employee referral, which swiftly led to an interview invitation. Initial DSA Interview:Collaborative Dialogue: The first round was a DSA (Data Structures and Algorithms) session, featuring medium-level questions. The intervie
2 min read
TCS Interview Experience for SDE-2 Round 1: Online test(60 minutes): The key to cracking this round is to try to do every question as many people in my college cleared this including me. It consisted of 5 Basic questions on topics like recursive function, HashMap, Hashtrees, Fibonacci problem, etc. The code was already written on the
1 min read
Ola Interview Experience for SDE 2 Round 1(DSA): Kind of Machine Coding 2 questions were asked and I was asked to solve either of them. I was asked a graph type problem but it was solvable using Hashmap and HashSet Another question was to make LRU cache(DLL + HM) with some constraints. Round 2(HLD): Resume deep levelDesign Spotify (m
1 min read