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()
Softwareentwickler 3 Interview Questions
512,286 softwareentwickler 3 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
You are given two integers, p and q. Complete the function calculatePower which takes two integers as arguments and returns p to the power of q, without using the built-in power function. We expect you to do better than O(q). A same input is p = 2 and q = 3, and the corresponding output is 8. Constraints: 0 <= p^q <= ((2^63) - 1)
Write code to parse a string and count the number of occurrences of each word.
Code Review
Reverse an array
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.
Viewing 621 - 630 interview questions