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.
Lets say Array is { 2, 3, 4, 3, 2, 3, 4, 5, 6, 7, 8, 9, 8, 9} . So here, as mentioned in the question, value of A[i] = A[i] - 1 OR A[i] + 1. Let k= 6. Start from the first element of array . Check its value . Its 2, so 6 can occur only after 4 elements because it can add maximum of 1 only in next element value.If 6 is not there at that place. Get the new value (ie 2 again ) and determine the next expected index of k. Now expected Index is previousExpectedIndex+newDifference which is 8 .So value at index 8 is 6 as expected.
- urgoswami June 12, 2012