Bloomberg LP Interview Question for Financial Software Developers






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

4 bytes are 32bits, which can represents 2^32 = 4 billion numbers. Maybe it is enough to represent the builds, I guess :)

- Anonymous January 22, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Get the area of NY and average size occupied by a building. divide area of NY by Area occupied by building. This will give an upper bound to number of building that can be in NY.

- a February 04, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

So a bit of basic math.

4 bytes counts 4294967296 structures.
1 sq mi = 27878400 sq ft.

My apartment is about 1200 ft sq. If all the buildings in NY had a footprint on average that was half the size of my apartment (pretty small for lots of buildings in NY. The area that could be counted by the counter would be
4294967296 * 600 ft sq = 2.5769803776 e+12 ft sq
which is
92436 mi sq
or an area 304 mi by 304 miles. If the average building footprint is larger than my apartment, then the size of the area grows.

Yup... I think the counter is big enough at 4 bytes.

- Wandering programmer March 01, 2010 | 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