Google Interview Question for Software Engineer / Developers






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

B-Tree + Graph ?

- Anonymous March 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

how to use graph or b-tree and graph to store street view images.

function: SEARCH: we could use latitude,longtitude,and other parameters to locate an image on a map to index an image. Use the index to search the image

question: how to store an image on physical drive? is this a file system management problem?

- kakaka March 28, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think the question here is how to store high quality pictures so i guess some kind of efficient compression algo with btree&graph to locate a image on the map.

- Guest April 10, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

compressed 3D JPEG movie. MPEG has I frames that are JPEG. Since google street view supports 3D, Come up with a special MPEG would pick its next I frame based on X, Y , Z angles.

- copycat February 27, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I only mentioned a graph, but to think of it a btree+graph would be a better choice

- Anonymous March 11, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

How about a 3-D array indexed by latitude, longitude and alignment(N E W S)? To move along the street, either change the alignment or increment positional parameters. We also need another data structure to map physical addresses to latitude and longitude.

although it sounds graph but practically it does not look like a graph is ideal for street view where u are just interested in immediate connections

- James Bond March 11, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

nice one ...

- spurthi March 20, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I guess we need to use some kind of 3D polar coordinate system.
A position/location/point can be represented by 2 (or 3, when in future "altitude" gets in the game) coordinates (x,y) and angle of viewing w.r.t. the East direction.

Store and Build indexing of compressed pictures using this coordinate system.

Further, we'll also need some logic to play with retrieved images when only the rotation angle is changed ie when someone is panning around, while at the same location (x,y). Then, retrieved images should show up as contiguous pan..

Obviously "angle with east" need to be discretized for indexing/lookup.

Note that street-view also has a zoom-in function which basically just magnifies/zooms that image limited-ly.

- Nix July 18, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

or is it something like - partition the image and store different parts on multiple disks. and when image needs to be read in and displayed, do multiple disk reads in parallel to save some disk read times... I had read such technique somewhere.

- Anonymous March 25, 2011 | 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