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.
we can do it in a single traversal.
- ganes.cit December 24, 2012total1, avg 1 for avg from beginning
total2 ,avg 2for avg from last
compute from (i=0 && j<N-1) do i++ & j-- {
compute the avg1 && avg2 .
avg1 = total1 with respect to i
avg2 = total2 with respect to j
if(avg1 > avg2)
then do the process (calculate avg2)from last(decrement j by 1)
else
then do the process(calculate avg1) from beginning(increment i by 1)
if(i==j)
stop the process
}
check the avg1 == avg2
if equeal then i(==j) is the second subarray.