public class Person { Person father; Person mother; Gender gender; Integer age; List<Person> children; int level = 0; public enum Gender { Male, Female; } } For the above class, you basically have to implement 2 methods. public List<Person> getOldestSisters() public List<Person> getGreatestAncestors()
Engineers Interview Questions
843,175 engineers interview questions shared by candidates
Given a string s="my name is anny" print it in this manner: m n i a y a s n m m e y ie first letter of every word in the string
basics
MCQ Round had programming questions of moderate difficulty
Write code to parse a string and count the number of occurrences of each word.
Code Review
How do you determine the direction of fluid flow in a pipe without directly interacting with what's inside?
What is the time complexity to find the median in an array?
Given a value in a binary search tree, write an algorithm that returns the next greatest value. The tree is assumed to contain the given value.
If there are two lists, and each have an identical number in them except for one unique number, how do you find the unique number?
Viewing 771 - 780 interview questions