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.
If you do have some memory available, you can use a bit vector and iterate the linked list only once.
- Kostis January 22, 20161. Create a bit vector with size equal to the max size that a node can store (e.g., if a node stores 32 bit integer values, create a bit vector that is 2^32 bits long - 0.5 GB).
2. Iterate through the linked list. For each node, check if the respective bit is set. If the bit is not set, set it and move to the next node. If the bit is set, make the previous node to point to the next one (i.e., delete the current node) and move to the next node.