Citigroup Interview Question for Applications Developers


Country: India




Comment hidden because of low score. Click to expand.
0
of 2 vote

How about a simple formula:

(int)input/25. If result is greater than 2, always return 3

- sameer October 08, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Most appropriate solution for this particular problem.

- sagar July 28, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote
{{{ The developer should use navigiable map so that he can easily find the group of people in the given range by using various methods of navigiable map for e.g . map.headMap(valueAge); // less than value age map will return map.subMap(valeAge1,valueAge2); //between range the map will return map.tailMap(valueAge);// greater than value age map will return } } - Anonymous October 10, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

What about store group as string eg: "0-25", which ca be used as key in a HashMap. By this way we can retrieve element in constant time :)

- Ajay Kumar May 27, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

HashMap. Each range should have unique hash. Very simple question.

- glebstepanov1992 October 06, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

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.

Learn More

Resume Review

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.

Learn More

Mock Interviews

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.

Learn More