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()
Sr Developer Interview Questions
97,947 sr developer interview questions shared by candidates
Given unsorted array, find the 2 max numbers in it.
If you want to distribute a large file (gigabytes) in a large (100+ machines) park how do you do it?
Write a program to count the number of words in a file.
How to detect loops in a linked list without using a data structure
Find 2 or more missing numbers in a set of 100 natural numbers
You have 10 boxes of balls (each ball weighing exactly10 gm) with one box with defective balls (each one of the defective balls weigh 9 gm). You are given an electronic weighing machine and only one chance at it. How will find out which box has the defective balls?
First three technicals were difficult,LOB also ok/ok.
Given a string, konylabsinterview write a program to return bool if a given pattern matches.pattern example - kon*lab*terview*
What sort would you use if you had a large data set on disk and a small amount of ram to work with?
Viewing 51 - 60 interview questions