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.
Logic goes like this:
- meetankit March 15, 2015Sample imput :
ar1[] = {1, 5, 10, 20, 40, 80}
ar2[] = {6, 7, 20, 80, 100}
ar3[] = {3, 4, 15, 20, 30, 70, 80, 120}
1: Take the first element from all arrays and pick the greatest among them (6 as per this imput)
2: Remove all elements from the arrays which are smaller than this selected element, as the arrays are sorted so smaller number would not be present in all arrays(1,5 and 3,4 will be deleted from arr1[] and arr2[] respectively)
Sample input would reduce to:
ar1[] = {10, 20, 40, 80}
ar2[] = {6, 7, 20, 80, 100}
ar3[] = {15, 20, 30, 70, 80, 120}
3: Keep on repeating step 1 and 2 until don't find same element at first position in all arrays.
4: return the element if same element occurs at first index in all arrays.