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.
There is a neat trick to do this in constant space without modifying the input linked list.
It will require two passes however.
Pass 1:
-Create copy of each node. Set previous & next correctly in the new node
-To keep track of new node reference, use random reference of original node. However before you overwrite random reference of the original node, preserve it in the random reference of the new node, i.e.:
Pass 2:
-Iterate over both lists together.
-For each node, restore the random reference in the original list. However before overwriting that, use the random reference of the newNode to retrieve corresponding random reference for the new node. i.e.:
- Bhaddu November 07, 2014