Amazon Interview Question for Software Engineer / Developers


Country: United States
Interview Type: Phone Interview




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

With design questions, ask your interviewer in order to clarify, do not start writing code.
Of course, we will be using OOP model for that. But what kind of design pattern, should we implement : Singleton / Factory. It depends on the questions and it is not a bad idea to ask interviewer if he prefers this or that.
Who is going to use it? Any Special Cases -- Child, Adult, Older , Disable Type
What are the materials used?  -- Wood, Steel, Iron, Vintage
Where are the objects to be used for? Office, Home, Outside, --
What are the objects ? -- Couch, Chair, Bed, Tea table, Desk, ---
--------------------------------------------------------------------
public class differentObjects extends forWhom {
          string [ ] furnitures; //collection of different furnitures
    //different furniture items : chair, bed, desk --
    private int furnitureNumber ;
         //constructor getting number of furnitures
          public differentObjects(int numberOfFurniture) { 
                      furnitureNumber = numberOfFurniture; 
         }

      public void get_names () {
   string [] furnitures = new furnitures[furnitureNumber] 
     furnitures [0] = chair
     furnitures [0] = "chair";
     furnitures [1] = "bed";
     furnitures [2] = "desk";
  ....................................
  ..................................... 
               }
}
abstract class forWhom {
                 public for_home() {.........}
                 public for_office() {.........} 
                 public for_special() {.........} 
                 public for_child() {.........} 
                 public for_adult() {.........}
                 public for_old() {.........}
 }
//color of different furniture
 public class colors extends  differentObjects{
              public void colors_available() { ...}
              public void colors_out_of_stock () {..........}
              public void colors_custom_made () {..............}
} 
//materials made up of 
 public class materials extends differentObjects {
            public void is_steel() {...}
            public void is_iron() {...}
            publlic void is_wood() {......}
            public void is_vintage() {.............}
}
-------------------------------------------------------

- ba127004 March 10, 2012 | 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