is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
W=Initial no of plates
- vicky February 26, 2013e= time to eat by single person
Devide the time interval into n parts
Create two arrays with the size n.
P[n]:Used to store current no of plates empty. Intially P[0]=W(i.e all plates are empty)
R[n]:Recycled plates . R[0]=0
Xi:no of guests come at ith interval
Z:Maximum no of allowed waiting list
(At time of waiting p will be negative number)
Repeat loop from i to n
1)if Ri>0 -> Notify host
2) Pi=Pi-Xi+Ri
if(Pi<0)
R(i+e)=Xi+Pi(with sign ..means Pi is negative)
if (-Pi)>Z.->Notify Host