#!process Amazon Interview(i fcked up i
1 messages Ā· Page 1 of 1 (latest)
Three Rounds
- LP + LLD... LP was fine ...
LLD was something like Imagine you have leagues, leagues have conferences, conferences have Divisions, Division have teams, team have players... and in last he was like Design a Statistic system based on this
I got confused asf and managed to make maybe class structure.... very bad round i guess
- All LP.. went well
- 2 LC Medium i guess. First one was Infected person in hospital... kinda solved it using BFS... 2) Was LinkedList ... separate the even from odd
for second question i sugges a solution with TC O(nlogn) and SC O(N) .. and he said modiffy the list iteself.... i was writing the code and coding platform closed automaticlly.. time got completed
Wishing the best for u š what were ur LPs?
thnks
praying for u brudda
Praying for u bro, saw u grinding in every amazon process post for a while, š
All the best!!
hopefully you get it
bro was the first reply on every zon post ššš»
Bro, are your 2 LCs these
Is your first LC similar to rotten oranges problem - https://leetcode.com/problems/rotting-oranges/description/
https://leetcode.com/problems/odd-even-linked-list/description/ - seperating even and odd indices from linked list or was it more like seperating even and odd numbers?
Second one was little different it was like separate the numbers not via indices
Amd first one was yeah like this but had matrix with 2,1,0 and x representing walls
Oh.. then what was the criteria?
0 representing an empty cell,
1 representing a fresh orange, or
2 representing a rotten orange.
That was the question; so if x represents walls; what is 0,1,2
I imagine itās the same and walls prevent the spread of infection
So technically 0 and x means the same here, right?
It was similar to rotan oranges only.. small chnges
2 is infected person, 1 uninefected,0 empty room, x is wall
Ye so X and 0 prob the same
Right, but unless Iām missing smth I donāt think thereās a logical difference between walls and empty rooms
Itās only in semantics
No you cant pass those ⦠if a while column or row is of wall
You wont be able to pass it
Its kinda same as rotten oranges
If a whole row or column is an empty room the disease canāt spread either
Yeah it was like rotten oranges with some conditions⦠i asked this to him he said yiu cam move thru empty rooms
So i coded accordingly
And i confirmed about 2 also⦠he said there will only be one 2
So i coded according to conditions he mentioned
BTW, what was the criteria for this question? If not via indices, what was the condition to separate numbers?
timeline?
what did they want you to do with the infection problem? Find if it's possible to spread the disease to every uinfected person? Or find the time when everybody gets infected?
He said to return true or false.. like if it spread to all return true ⦠otherwise false⦠so if any 1 remains in end ā¦. It means false
ok i got it
so it's essentially running BFS starting from the infected person (2)
tks
Can we repeat LP stories in other rounds?
when was your interview?
No idea ⦠i couldnt solve it
The way I understood was like he wanted info of game stats
At end thru some functions
So we have to store that info
I made a class Match to basically store a match info like which teams played, how many goals were scored, which team won etc⦠and i made hierarchy like Leagues have conferences, conferences have Divisions, Divisions have Matches, matches have teams, and teams have players⦠and in end a Stats class which will have leagues⦠something like thisā¦
I couldnt reach to a point where i would design functions time was over
no they are basically not asking any coding question which are available on leetcode?
they are coming up with their own lc questions?
daamn !
any resources you would suggest?
Dnt knw man⦠maybe my approach was wrong⦠didnāt get much hints either and i got confused so couldnāt manage to do much
praying for pizza ood and no hard lc
what is RNG?
random
oh okk
But aren't they related to any of the standard LC questions?
+1
dont know i havent given the interview yet
When's your interview? SDE-1 VO?
i didn't get the survey link yet
what was the ques?