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()
Senior Developer Java Interview Questions
97,955 senior developer java 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
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?
Find 2 or more missing numbers in a set of 100 natural numbers
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*
Given a string input, create a function that will output a compressed version of the string. E.g. Input = "AAABBZZDDD", Output = "A3B2Z2D3"
Viewing 51 - 60 interview questions