Google Interview Report
- 3of 3 votes
AnswersConsider the following array {1,2,3,4,5,2,5,4,4};
In the above array, index 4 could be considered as breaking point where summation of 0 to 4 in the array is equal to summation of 5 to end of array. We need to find the breaking point for the given array. I solved this. But follow up was for this array{1,0,-1,-1,1};
. Mathematically the later array's breaking point is 2.
- Madan January 23, 2014 in United States| Report Duplicate | Flag | PURGE
Google SDE1 - -1of 1 vote
AnswersConsider in Java arraylist we have mix of int, double, float, string, etc. How will you find if a given index of arraylist have string. No need to worry about generics and type safe.
- Madan January 23, 2014 in United States| Report Duplicate | Flag | PURGE
Google SDE1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.