Yahoo's technical test (at IIT-B, 2012 Placements) consisted of 25 objective questions and 2 coding questions. Total duration was around 1.5 hours. Objective questions mainly focused on Data Structures, Big-O, Sorting, C/C++ concepts and some general puzzles.
Coding test had the following 2 questions:
1) You have been given a triangle of numbers as shown below. You are supposed to start at the top and go to the base of the triangle by taking a path which gives the maximum sum. You have to print this maximum sum at the end. A path is formed by moving down 1 row at each step to either of the immediately diagonal elements.
2) Given an array of strings, display all the strings that are not prefix of any other string in the array.
Coding test had the following 2 questions:
1) You have been given a triangle of numbers as shown below. You are supposed to start at the top and go to the base of the triangle by taking a path which gives the maximum sum. You have to print this maximum sum at the end. A path is formed by moving down 1 row at each step to either of the immediately diagonal elements.
The path needed is 3->7->4->9 since it adds up to 3 + 7 + 4 + 9 = 23, which is the max possible value.
2) Given an array of strings, display all the strings that are not prefix of any other string in the array.
ReplyDeleteشركة نقل عفش بالرياض رخيصة
_-
دينا نقل عفش بالرياض
شحن عفش من السعودية الى الاردن شحن عفش من السعودية الى الاردن
شركة نقل عفش من المدينة المنورة الى مكة شركة نقل عفش من المدينة المنورة الى مكة
شركة نقل عفش من الدمام الى جدة شركة نقل عفش من الدمام الى جدة
شركة شحن عفش من جدة الى الاردن شركة شحن عفش من جدة الى الاردن
شركة نقل عفش من الدمام الى الاحساء شركة نقل عفش من الدمام الى الاحساء