#Timeline
1 messages · Page 1 of 1 (latest)
Applied - 11/14
OA - 12/14
Invitation - 4/7
Final - 4/17
i also got an email 2/25 asking for photo id verification cause my photo wasn’t clear in the OA
You got survey and invite on same day?
Their timelines are so random for different people
@acoustic echo what was asked can you elaborate
Wdym?
ope nvm
Ok, I got the invite and then the survey like 5 minutes later both on April 4th, my interview time was confirmed on April 7th
1st round - all LP questions
2nd round - half LP, design question parking garage
3rd round - LRU cache, given a list of numbers, return a number not in the list
What requirements were they looking for in the parking design q?
Was the last LC q this - https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array
Exact same lol
^^
I’ll be honest i didnt lol
Kind of, it was more just find a single number
The numbers were limited to 32 bits, interviewer was more interested in the minimum amount of space you could solve the problem in
were the numbers in the range 1 to n ?
the prompt of the question was you have a file, each line in the file is one number, read through all the numbers in the file and return a number not in the file
The numbers are from 1 to 2^31
oh so every number in that range except 1 number
What sol did you propose/he was looking for?
Not necessarily, there could be more than 1 number missing
He wanted me to use bits to represent the numbers that were seen
oh so store presence in bitset then iterate to find first one that wasnt there
Btw, what were the requirements for the parking garage q?
and did he expect you to code this up lol - bit manipulation id def trip up on
yes, except i ran out of time
An array corresponding to car sizes, so like [1,2,3] means 1 small spot, 2 medium spots, 3 large spots and then queries (arrival, medium) returns key for the car like 1, (departure, 1), means car 1 is leaving
Like a valet service
So the queries were (arrival_time, car_size) and (departure_time, car_size)?
or was it just boolean arrival/departure
so essentially you had to free up slot upon departure and allocate upon arrival. If full you'd just store these in a queue?
There was no time, just whether it was arrival or departure, if it was an arrival and there was space you would give them a key, else you would reject saying the parking lot was full or something. Departure would take that key and free up the space the car was taking assuming there was a car associated with that key
Did you need to store the location /floorof the spot too? else it seems quite simple - just increment or decrement spots and prolly store a set of cars
oop sorry didnt see this, not really. yea I used a dictionary to keep track if a key corresponded to a car in the garage as well as its size