Interview Question
Software ArchitectsCountry: India
Interview Type: In-Person
Now , if I want to retrieve top 10 ranked ppl in gkey , ckey , how can I do tat?? we have rank list ...but this ranklist is based on which rank?
Now , if I want to retrieve top 10 ranked ppl in gkey , ckey , how can I do tat?? we have rank list ...but this ranklist is based on which rank?
is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
Here I have assumed that any rank can be the key for searching. So, First I have created a Key abstract class and GKey, RKey CKey and FKey classes for 4 types of rank Then I have Created a person class and have used those 4 types of key as member variable. The codes are given bellow.:
Bellow The concrete classes of key:
In same way we shall implement CKey, GKey, FKey and RKey.
Now the person class will be like bellow:
Then we are having organization class that will use person class:
And finally we have Test class to test the whole thing:
- Ghosh July 20, 2014