Free Essay

Amazon Interview Question for Freshers

In:

Submitted By linkin2manasi
Words 603
Pages 3
Amazon Interview | Set 1
August 24, 2012
Please find the details of my amazon interviews below.
Date of Interviews: 22nd August 2012
No of Rounds: 1 Written + 4 PI
Type of Interviews: Campus Interview for freshers

Written Test (Time): 90 Minutes
20 Objective Questions: Aptitude and basic C objective problems.
2 Subjective Questions:
I. To find if there is any root to leaf path with specified sum in a binary tree.
II. Some question based on sorting.

Interview Round 1(60-70 Minutes):
Technical Interview
Question 1: Check if a character link list is palindrome or not.
Question 2: A sorted array has been rotated r times to the left. Find r in least possible time.
Question 3: Clone a singly link list whose nodes contain, apart from next pointers, an extra pointer to any random node. The random pointer of a node N could be after N, before N or the node N itself.

Interview Round 2(50-60 Minutes):
Technical Interview
Question 1: There is a big file of words which is dynamically changing. We are continuously adding some words into it. How would you keep track of top 10 trending words at each moment?
Question 2: Write code for minHeapify() operation.
Question 3: Design a data structure for the following operations:
I. Enqueue
II. Dequeue
III. Delete a given number(if it is present in the queue, else do nothing)
IV. isNumberPresent
All these operations should take O(1) time.
Question 4: Write a function that returns the length of the longest leaf-to-leaf path in a binary tree.

Interview Round 3(60-70 Minutes):
Technical Interview
Question 1: There is a binary tree of size N. All nodes are numbered between 1-N(inclusive). There is a N*N integer matrix Arr[N][N], all elements are initialized to zero. So for all the nodes A and B, put Arr[A][B] = 1 if A is an ancestor of B (NOT just the immediate ancestor).
Question 2: Find an element in a sorted rotated integer array.
Question 3: There is a N*N integer matrix Arr[N][N]. From the row r and column c, we can go to any of the following three indices:
I. Arr[ r+1 ][ c-1 ] (valid only if c-1>=0)
II. Arr[ r+1 ][ c ]
III. Arr[ r+1 ][ c+1 ] (valid only if c+1<=N-1)
So if we start at any column index on row 0, what is the largest sum of any of the paths till row N-1.

Interview Round 4(40-50 Minutes):
Bar Raiser Round
Interviewer asked HR Questions Initially, then a sort of puzzle.
Two robots land with their parachutes on an infinite one-dimensional number line. They both release their parachutes as soon as they land and start moving. They are allowed only to make use of the following functions.
I. moveLeft() // robot moves to left by 1 unit in 1 unit time
II. moveRight() // robot moves to right by 1 unit in 1 unit time
III. noOperation() // robot does not move and takes 1 unit time
IV. onTopOfParachute() // returns true if the robot is standing on top of either of the parachute, else false
V. didWeMeet() // returns true if the robot meets to the other robot, else false
Write a function in order to make the robots meet each other. Robots will be executing the same copy of this function.
HIRED!!

Tips / Advice:
I. Each time you write a code, check for the edge cases.
II. Do not assume anything. Keep asking questions if there are any doubts.

Similar Documents

Premium Essay

Cmmkfgdk

...CRACKING THE FOURTH EDITION INTERVIEW 150 programming interview questions and solutions Plus: • Five proven approaches to solving tough algorithm questions • Ten mistakes candidates make -- and how to avoid them • Steps to prepare for behavioral and technical questions • Interviewer war stories: a view from the interviewer’s side CODING GAYLE LAAKMANN Founder and CEO, CareerCup.com CRACKING THE CODING INTERVIEW CRACKING THE INTERVIEW 150 Programming Interview Questions and Solutions CODING GAYLE LAAKMANN Founder and CEO, CareerCup.com CareerCup, LLC Seattle, WA CRACKING THE CODING INTERVIEW, FOURTH EDITION Copyright © 2008 - 2010 by Gayle Laakmann. All rights reserved. Published by CareerCup, LLC, Seattle, WA. Version 3.21090410302210. Visit our website at: www.careercup.com. No part of this book may be used or reproduced in any manner without written permission except in the case of brief quotations in critical articles or reviews. For more information, contact support@careercup.com. Printed in United States of America 978-1-450-59320-5 9781450593205 (ISBN 13) Table of Contents Foreword Introduction Behind the Scenes The Microsoft Interview The Amazon Interview The Google Interview The Apple Interview The Yahoo Interview Interview War Stories Before the Interview Resume Advice Behavioral Preparation Technical Preparation The Interview and Beyond Handling Behavioral Questions Handling Technical Questions Five Algorithm Approaches The...

Words: 47808 - Pages: 192

Premium Essay

Strategic Marketing Management

...Assessment Criteria Evidence (To provide evidence of Achieving Assessment Criteria Learner should provide the following ) 1.1 Discuss the role of strategic marketing in an organization. For AC1.1, learners need to show that they understand the difference between strategic and tactical marketing. They need to use established models and definitions to develop theirdiscussion. 1.2 Explain the processes involved in strategic marketing. For AC1.2, learners will be expected to understand and explain the processes involved in strategic marketing. This will involve looking at a range of processes and learners may wish to draw on their own experiences in the workplace to amplify their points. 1.3 Evaluate the links between strategic marketing and corporate strategy For AC1.3, learners are expected to understand that the process of strategic marketing does not take place in a vacuum. They will need to show that they can evaluate the links between strategic marketing and corporate strategy and provide examples of those links. 2.1 Assess the value of models used in strategic marketing planning. For AC2.1, learners need to research the models used in strategic planning. They will need to make judgments and assess the value of the models for strategic marketing planning. 2.2 Discuss the links between strategic positioning and marketing tactics. For AC2.2, learners need to understand that when strategic plans are put into operation, dayto-day tactical decisions have to be made. In...

Words: 7427 - Pages: 30

Premium Essay

Evaaluation of Recruitment at Binani Cement Ltd.

...------------------------------------------------- BINANI CEMENT LIMITED ------------------------------------------------- Binanigram A PROJECT REPORT ON RECRUITMENT SUBMITTED BY: SUBMITTED TO: RANU CHOUHAN Mr. Ashish Joshi M.B.A(III Sem.) R.A. PODAR INSTITUTE OF MANAGEMENT, JAIPUR DATED: 1 JUNE 2012 – 1 AUG 2012 ADDRESS: BINANI CEMENT LTD. BINANIGRAM PINDWARA, DISTT. SIROHI RAJASTHAN ------------------------------------------------- CERTIFICATE ------------------------------------------------- ------------------------------------------------- This is to certify that Ms Ranu Chouhan , student of M.B.A Of, (R.A. PODDAR INSTITUTE OF MANAGEMENT, JAIPUR) has worked on the Project entitled “RECRUITMENT”, which covered the topics Recruitment methods, Process, Factors affecting recruitment Selection etc, under my supervision & guidance. ------------------------------------------------- ------------------------------------------------- She has worked very hard & methodically. She has also fulfilled all the requirements assigned to her during her work. Her work has no resemblance with others. ------------------------------------------------- ------------------------------------------------- I recommend here by to examine the project...

Words: 7730 - Pages: 31

Premium Essay

C Sharp Project

...C# and ASP.NET Projects By Shivprasad Koirala Sham Shaikh Visit us http://www.questpond.com for free interview question e-book. Mail bpb@bol.net.in to buy the book Write to the author directly at shiv_koirala@yahoo.com The e-Book is free but below are the limitation of this free e-book:-- The book has only 5 projects which are far less than what the actual book contains. -- Practical Videos and code walkthrough of the projects is not available for download. -- The book also has lot of installations provided in CD even that is not available for Download. Finally hard copy is a hard copy if you are interested below are the ways you can buy the Book:• Buy directly from the Author call 09867628636. If you are buying from the Author You get a chance to meet him and believe us you will enjoy it. Please send DD of Rupees 300 in favor of (Please send us detail that you want a hard copy or E-book CD) Shivprasad Bist E – 8, Amar Nager , Hoechst Colony , Opposite ShreeRam towers Mulund West Mumbai 82. • Call your city book shop MUMBAI-22078296/97/022-22070989, KOLKATA22826518/19,HYDERABAD-24756967,24756400,BANGALORE25587923,25584641,AHMEDABAD-26421611, BHATINA(PUNJAB)2237387,CHENNAI-28410796,28550491,DELHI/NEWDELHI23254990/91,23325760,26415092,24691288 • Are you a Pakistani reader then contact M/s. Vanguard Books P Ltd, 45 The Mall, Lahore, Pakistan (Tel: 0092-427235767, 7243783 and 7243779 and Fax: 7245097) E- mail: vbl@brain.net.pk • If you are not from india or pakistan :- ...

Words: 16342 - Pages: 66

Premium Essay

C# and Asp.Net Project by Shivprasad Koirala Sham Shaikh

...C# and ASP.NET Projects By Shivprasad Koirala Sham Shaikh Visit us http://www.questpond.com for free interview question e-book. Mail bpb@bol.net.in to buy the book Write to the author directly at shiv_koirala@yahoo.com The e-Book is free but below are the limitation of this free e-book:-- The book has only 5 projects which are far less than what the actual book contains. -- Practical Videos and code walkthrough of the projects is not available for download. -- The book also has lot of installations provided in CD even that is not available for Download. Finally hard copy is a hard copy if you are interested below are the ways you can buy the Book:• Buy directly from the Author call 09867628636. If you are buying from the Author You get a chance to meet him and believe us you will enjoy it. Please send DD of Rupees 300 in favor of (Please send us detail that you want a hard copy or E-book CD) Shivprasad Bist E – 8, Amar Nager , Hoechst Colony , Opposite ShreeRam towers Mulund West Mumbai 82. • Call your city book shop MUMBAI-22078296/97/022-22070989, KOLKATA22826518/19,HYDERABAD-24756967,24756400,BANGALORE25587923,25584641,AHMEDABAD-26421611, BHATINA(PUNJAB)2237387,CHENNAI-28410796,28550491,DELHI/NEWDELHI23254990/91,23325760,26415092,24691288 • Are you a Pakistani reader then contact M/s. Vanguard Books P Ltd, 45 The Mall, Lahore, Pakistan (Tel: 0092-427235767, 7243783 and 7243779 and Fax: 7245097) E- mail: vbl@brain.net.pk • If you are not from india or pakistan :- ...

Words: 16342 - Pages: 66

Premium Essay

Marketing

...The PMA/Northwestern University ROI of Integrated Marketing Research Project Research Results Developed by The PMA Educational Foundation, Inc. Northwestern University and The Dudley Group, Inc. in association with the Forum for People Performance Management and Measurement © Copyright 2005 by the PMA Educational Foundation, Inc. All rights reserved Copyright © 2005 The PMA Educational Foundation, Inc. All rights reserved. Published by The PMA Educational Foundation, Inc. 257 Park Avenue South New York, NY 10010 As the educational arm of the Promotion Marketing Association, Inc. (“PMA”), the PMA Educational Foundation, Inc. is dedicated to serving the public as its primary source of education, research and information on promotion and integrated marketing. The Promotion Marketing Association, Inc. is the premier trade association representing the $300 billion promotion marketing industry. Its members include many Fortune 500 corporations, top promotions agencies, suppliers of important promotional products and services, law firms and academics. The PMA is the voice of the promotion industry recognized and relied upon as the primary resource of promotion education, information and interaction for marketers. The PMA Educational Foundation acknowledges and thanks everyone who contributed to this project. Copyright © 2005 by the PMA Educational Foundation, Inc. All rights reserved. No portion of this work may be reproduced, transmitted or disseminated in any form...

Words: 19679 - Pages: 79

Premium Essay

Essential of Strategic Management

...3) ● Learning Effects in Cardiac Surgery (Chapter 4) ● How to Make Money in the Vacuum Tube Business (Chapter 5) ● The Evolution of Strategy at Procter & Gamble (Chapter 6) ● Diversification at 3M: Leveraging Technology (Chapter 7) ● News Corp’s Successful Acquisition Strategy (Chapter 8) ● How to Flatten and Decentralize Structure (Chapter 9) Practicing Strategic Management Application-based activities intended to get your students thinking beyond the book. Small-Group Exercises Short experiential exercises that ask students to coordinate and collaborate on group work focused on an aspect of strategic management. Exploring the Web Internet exercises that require students to explore company websites and answer chapter-related questions. Designing a Planning System (Chapter 1) Evaluating Stakeholder Claims (Chapter 2) Competing with Microsoft (Chapter 3) Analyzing Competitive Advantage (Chapter 4) How to Keep the Salsa Hot (Chapter 5) Developing a Global Strategy (Chapter 6) Comparing Vertical Integration Strategies (Chapter 7) ● Identifying News Corp’s Strategies (Chapter 8) ● Speeding Up Product Development (Chapter 9) ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●...

Words: 223966 - Pages: 896

Premium Essay

Essentials-of-Strategic-Management-by-Hill-Jones

...3) ● Learning Effects in Cardiac Surgery (Chapter 4) ● How to Make Money in the Vacuum Tube Business (Chapter 5) ● The Evolution of Strategy at Procter & Gamble (Chapter 6) ● Diversification at 3M: Leveraging Technology (Chapter 7) ● News Corp’s Successful Acquisition Strategy (Chapter 8) ● How to Flatten and Decentralize Structure (Chapter 9) Practicing Strategic Management Application-based activities intended to get your students thinking beyond the book. Small-Group Exercises Short experiential exercises that ask students to coordinate and collaborate on group work focused on an aspect of strategic management. Exploring the Web Internet exercises that require students to explore company websites and answer chapter-related questions. Designing a Planning System (Chapter 1) Evaluating Stakeholder Claims (Chapter 2) Competing with Microsoft (Chapter 3) Analyzing Competitive Advantage (Chapter 4) How to Keep the Salsa Hot (Chapter 5) Developing a Global Strategy (Chapter 6) Comparing Vertical Integration Strategies (Chapter 7) ● Identifying News Corp’s Strategies (Chapter 8) ● Speeding Up Product Development (Chapter 9) ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●...

Words: 223966 - Pages: 896

Free Essay

Juriprudence

...Edited by Kristen Walker Painemilla, Anthony B. Rylands, Alisa Woofter and Cassie Hughes Edited by Kristen Walker Painemilla, Anthony B. Rylands, Alisa Woofter and Cassie Hughes Conservation International 2011 Crystal Drive, Suite 500 Arlington, VA 22202 USA Tel: +1 703-341-2400 www.conservation.org Editors : Kristen Walker Painemilla, Anthony B. Rylands, Alisa Woofter and Cassie Hughes Cover design  Paula K. Rylands, Conservation International : Layout: Kim Meek, Washington, DC Maps [except where noted otherwise]  Kellee Koenig, Conservation International : Conservation International is a private, non-profit organization exempt from federal income tax under section 501 c (3) of the Internal Revenue Code. ISBN 978-1-934151-39-6 © 2010 by Conservation International All rights reserved. The designations of geographical entities in this publication, and the presentation of the material, do not imply the expression of any opinion whatsoever on the part of Conservation International or its supporting organizations concerning the legal status of any country, territory, or area, or of its authorities, or concerning the delimitation of its frontiers or boundaries. Any opinions expressed in this publication are those of the writers, and do not necessarily reflect those of Conservation International (CI). Suggested citation: Walker Painemilla, K., Rylands, A. B., Woofter, A. and Hughes, C. (eds.). 2010. Indigenous Peoples and Conservation: From  Rights to Resource Management. Conservation...

Words: 170022 - Pages: 681

Premium Essay

Marketing Real People, Real Choices

...c MARKETING 7E People real Choices This page intentionally left blank MARKETING 7E People real Choices Michael R. SAINT JOSEPH S SOLOMON ’ U OLLINS NIVERSITY Greg W. MARSHALL R C STUART OLLEGE Elnora W. THE UNIVERSITY OF SOUTH CAROLINA UPSTATE Prentice Hall Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo Editorial Director: Sally Yagan Editor in Chief: Eric Svendsen Acquisitions Editor: Melissa Sabella Director of Editorial Services: Ashley Santora Editorial Project Manager: Kierra Bloom Editorial Assistant: Elisabeth Scarpa Director of Marketing: Patrice Lumumba Jones Senior Marketing Manager: Anne Fahlgren Marketing Assistant: Melinda Jensen Senior Managing Editor: Judy Leale Project Manager: Becca Richter Senior Operations Supervisor: Arnold Vila Creative Director: Jon Christiana Senior Art Director: Blair Brown Text and Cover Designer: Blair Brown Media Project Manager, Production: Lisa Rinaldi Media Project Manager, Editorial: Denise Vaughn Full-Service Project Management: S4Carlisle Publishing Services Composition: S4Carlisle Publishing Services Printer/Bindery: Courier/Kendalville Cover Printer: Courier/Kendalville Text Font: Palatino Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook...

Words: 227255 - Pages: 910

Premium Essay

Quiet: Power of Introverts

...MORE ADVANCE NOISE FOR QUIET “An intriguing and potentially lifealtering examination of the human psyche that is sure to benefit both introverts and extroverts alike.” —Kirkus Reviews (starred review) “Gentle is powerful … Solitude is socially productive … These important counterintuitive ideas are among the many reasons to take Quiet to a quiet corner and absorb its brilliant, thought-provoking message.” —ROSABETH MOSS KANTER, professor at Harvard Business School, author of Confidence and SuperCorp “An informative, well-researched book on the power of quietness and the 3/929 virtues of having a rich inner life. It dispels the myth that you have to be extroverted to be happy and successful.” —JUDITH ORLOFF, M.D., author of Emotional Freedom “In this engaging and beautifully written book, Susan Cain makes a powerful case for the wisdom of introspection. She also warns us ably about the downside to our culture’s noisiness, including all that it risks drowning out. Above the din, Susan’s own voice remains a compelling presence—thoughtful, generous, calm, and eloquent. Quiet deserves a very large readership.” —CHRISTOPHER LANE, author of Shyness: How Normal Behavior Became a Sickness 4/929 “Susan Cain’s quest to understand introversion, a beautifully wrought journey from the lab bench to the motivational speaker’s hall, offers convincing evidence for valuing substance over style, steak over sizzle, and qualities that are, in America, often derided. This book is brilliant...

Words: 118436 - Pages: 474

Premium Essay

Radical Leadership at Semco

...Plan For A Product Of Innocent Drinks Marketing Essay The report describes the marketing plan for the repositioning of the product “This Water” offered by “Innocent Drinks”. Company was founded in 1999 and offers smoothies and flavoured spring water in Super markets, coffee shops, cinemas and other outlets in UK and other countries. Company has decided to re-launch its existing product “This Water” in the cinemas in the UK with the new name “This Water Plus”. This report covers the marketing plan and marketing strategies to reposition the product. The period for the marketing plan is set from 2nd January 2011 to 1st September 2012. All the effecting factors are consider while planning the plan including current world and specifically UK economic position after recession as UK economy is still in process to gain its recovery position. Innocent Drinks has improved the design and packaging of its product to make it more attractive and focused on the corporate social responsibility. They used recycled material for the packaging and also contributes portion of the profit towards charitable work. They have targeted the UK cinemas to offer this product. Innocent Drinks is a UK based company established in 1999 by three Cambridge graduates. Its main business is producing smoothies and flavoured spring water. Company sells its products in supermarkets, cinemas and coffee shops. It has branches in UK, France, Austria, Denmark, Amsterdam, Brussels and Germany. Company enjoys 71% of UK...

Words: 16623 - Pages: 67

Premium Essay

Strategic Management

...SIXTH EDITION STRATEGIC MANAGEMENT IN ACTION Mary Coulter Missouri State University Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montréal Toronto Delhi Mexico City São Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo Editor in Chief: Stephanie Wall Senior Acquisitions Editor: April Cole Editorial Project Manager: Claudia Fernandes Director of Marketing: Maggie Moylan Senior Marketing Manager: Nikki Ayana Jones Marketing Assistant: Gianna Sandri Senior Managing Editor: Judy Leale Production Project Manager: Kelly Warsak Senior Operations Supervisor: Arnold Vila Operations Specialist: Cathleen Petersen Creative Director: Blair Brown Senior Art Director: Kenny Beck Text Designer: LCI Design Cover Designer: LCI Design Cover Art: Svetoslav Iliev/Shutterstock.com Permission Specialist: Brooks Hill-Whilton Media Project Manager, Production: Lisa Rinaldi Senior Media Project Manager, Editorial: Denise Vaughn Full-Service Project Management and Composition: Integra Printer/Binder: RRD/Willard Cover Printer: Lehigh-Phoenix Color Text Font: 10/12, Times LT Std Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear on appropriate page within text. Copyright © 2013, 2010, 2008 Pearson Education, Inc., publishing as Prentice Hall, One Lake Street, Upper Saddle River, New Jersey 07458. All rights...

Words: 154599 - Pages: 619

Premium Essay

Xlri Brochure

...Exploring Excellence PGDM (GM) (GMP 2013–14) AN AICTE APPROVED FLAGSHIP FULL-TIME MBA PROGRAM FOR EXPERIENCED PROFESSIONALS E-brochure http://www.placementkloud.com/xlrigmp 01 02 03 04 05 06 08 10 12 14 16 MESSAGE FROM THE DIRECTOR Learning and growth are vital for a healthy environment in organizations. We at XLRI have structured our programmes in such a manner as to equip the future managers of tomorrow with learning, competencies and skills that can significantly contribute to the growth of the organization. XLRI has always been proudly associated with academic excellence, personal values and social concern. It has been the crucible of leadership training for over 60 years and its banner is held high by a fine breed of alumni who serve as “change agents” thereby adding a new dimension to their corporate role. This integral and value based formation will greatly assist our students to be innovative, competent and creative leaders. They are groomed in a manner as to serve as agents of continuous improvement and change. It was in 1997 that XLRI recognized an unfulfilled need for formal management training at middle and senior levels of corporate strata. The result of that thought process was the General Management Programme, which has ever since, transformed several industry professionals into veritable leaders who reflect the standards and values of XLRI at various organizations. Recognized by AICTE, the programme places emphasis on stringent admission procedures...

Words: 25500 - Pages: 102

Premium Essay

Maytag

...ROBERT F. HARTLEY • Cindy Claycomb 12th Edition T W E L F T H E D I T I O N MARKETING MISTAKES AND SUCCESSES Robert F. Hartley Late of Cleveland State University Cindy Claycomb Wichita State University VICE PRESIDENT & EXECUTIVE PUBLISHER SENIOR EDITOR PROJECT EDITOR EDITORIAL ASSISTANT ASSOCIATE DIRECTOR OF MARKETING MARKETING MANAGER MARKETING ASSISTANT DESIGN DIRECTOR PRODUCT DESIGNER SENIOR PRODUCTION MANAGER ASSOCIATE PRODUCTION MANAGER PRODUCTION EDITOR COVER DESIGNER George Hoffman Franny Kelly Brian Baker Jacqueline Hughes Amy Scholz Kelly Simmons Marissa Carroll Harry Nolan Allison Morris Janis Soo Joel Balbin Eugenia Lee Kenji Ngieng This book was set in 10/12 New Caledonia by Aptara®, Inc. and printed and bound by Courier/Westford. The cover was printed by Courier/Westford. This book is printed on acid-free paper. Founded in 1807, John Wiley & Sons, Inc. has been a valued source of knowledge and understanding for more than 200 years, helping people around the world meet their needs and fulfill their aspirations. Our company is built on a foundation of principles that include responsibility to the communities we serve and where we live and work. In 2008, we launched a Corporate Citizenship Initiative, a global effort to address the environmental, social, economic, and ethical challenges we face in our business. Among the issues we are addressing are carbon impact, paper specifications and procurement, ethical...

Words: 180086 - Pages: 721