Amazon Interview Question for Software Engineer / Developers


Country: United States




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

Good Question

We can have the following approach
class GPS have the following methods
1> getLongitude() which will connect to the network and get the longitude value of it and return the double.
2> Similarly getLatitude() and getaltitude() returning corresponding double values.
3> Similarly we need one more method called getPosition(double longitude,double latitude, double altitute), which will accept these values and calculate the point of intersection as the current position.

- hprem991 February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

core objects:
- GPS is a global wrap class which contains below classes
1) MAP
2) current location and destination location (which is a location class)
3) route
4) displayer

methods
- update current location then refresh map and display
- add/change/remove destination location
- mark a route on the map
-....

what the data structure behind MAP??

- Bin February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

U can use 2 D or 3 D vector / array for Map

- hprem991 February 14, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

@Hprem:

Is it ok to have one class for building a system.... ?? what about flexibility and exendibility??

- Deepak Singh February 13, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The satellite s/w can have the following structure:

//CLASSES:
Sensor, GroundCommunication, PositionData, GPS //will be an observable.
//INTERFACES:
ObservablePosition

The

GPS

class will be used by the client s/w to interface with the GPS.
The ground unit will subscribe to receive Inputs from the GPS system.

Ground Unit:

//INTERFACES:
PositionObserver

//CLASSES:
ReceiverModule
// This will be an observer to the position and will attempt a 'pull' for the information
Positions //For persistent storage of position information. May be used for route finding.
Controller //This is just a general class. Ment to be a package rather than just a class.
UserInterface //There may be multiple Interface classes. But for the interviewers sake keep it short.

Feel free to point out any flaws / enhancements. :-D

- nik February 19, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

i want to design a tracking system, is it possible to design on our own?

- ratnakar September 19, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

just like gps!

- ratnakar September 19, 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