YOE: 2.5
Position: SDE1(Backend Services - Java) equivalent at a product company
Location: Hyderabad, India
Date: December, 2020Technical Screen Round:
Kth Frequent Element in a Stream
Asked how will I scale if there were 1 billion integers in the stream. Gave a horizontally scalable design which the interviewer was happy with.
I heard back from HR within 2-3 days for my availability for the actual interview rounds. There were 5 interview rounds all were back to back(30mins to 1hr gap in between), 3 Loop rounds, 1 Hiring Manager Round, and one bartender round
Coding:
100
/ \
20 500
\
30
80
/ \
60 150
/
10
Answer is 20
Can be either of (30, 10) or (100,80)
Design a circular Queue, expose proper api's to iterate queue
and shift entire queue by n spaces(left or right)
interviewer pushed to make it with a fixed size array
didnt allow java collections
Now what will you do if we need dynamic size of queue and your old code is in prod.
Answered that we can create a wrapper on top of current design to create a new container
with 1.5N size or 2X size and then copy
basically wanted to know how java arraylist is dynamic, how heap space is allocated
Wrapper will allow old code to function properly while new functionalities can be used by new components
Lot of questions on java, multhreading and concurrency. Probably as I have worked predominantly on these in my current role.
questions along the same lines
When did you first hear about oci?
Coding ->
https://leetcode.com/problems/remove-nth-node-from-end-of-list/
It was a good experience but it was VERY exhausting. Having 5 almost back to back interviews take a toll(some of them were 1.5 hours). After a while, I felt my brain getting slower. Idk maybe its only for me
Compensation: https://leetcode.com/discuss/compensation/968205/Oracle-OCI-or-IC2-or-Hyderabad