Interview Book

In: Other Topics

Submitted By cutecherrypie
Words 47808
Pages 192
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 Offer and Beyond Top Ten Mistakes Candidates Make Frequently Asked Questions Interview Questions Data Structures Chapter 1 | Arrays and Strings Chapter 2 | Linked Lists Chapter 3 | Stacks and Queues Chapter 4 | Trees and Graphs Concepts and Algorithms Chapter 5 | Bit Manipulation Chapter 6 | Brain Teasers 4 5 7 8 9 10 11 12 13 20 21 23 25 28 29 31 34 37 39 41 44 46 47 49 51 53 56 57 59…...

Similar Documents

Interview

...INTERVIEW Interview is a conversation led, which involved at least two people, the interviewer and the respondent. This is not a conversation, but the conversation through which the investigator wants to obtain from the respondent data set to study. Therefore, sociologists rightly point to the fact that it is a specific method of testing, which is assumed to work closely with each investigator and the respondent. The interview is a process in which the investigator is trying to influence the study posed questions and get him to give a speech on the subject of research. It is one of the methods, which allows parallel use of another-namely observation. TYPES OF INTERVIEW: Due to the form of expression of the respondents and the way the interview, and also because of the behavior of the investigator and the number of participants, which are used in the social sciences. We can therefore distinguish the following interviews: oral and written, categorized and Uncategorized, overt and covert, individual and collective, and panels. WRITTEN AND ORAL INTERVIEW: In addition to the interviews conducted in a classical sense, ie, by speaking to the investigator of one or more speakers, there are also interviews in which questions are asked in writing (eg, survey) and the answers are given in writing, directly to the questions listed in the questionnaire, or in another manner, for example, for any given researching cards. INTERVIEW Interview categorized and categorized NIESKATEGARYZOWANY......

Words: 1015 - Pages: 5

Interview

...s Praise for How to Interview Like a Top MBA “A must read! As someone who has also recruited top MBA candidates for investment banking, I unequivocally recommend How to Interview Like a Top MBA. It does an exceptional job of explaining what recruiters at the most sought-after corporations look for when deciding whom they should hire. Easy to read and very well organized, Dr. Leanne’s book covers important aspects of the interview process and provides valuable anecdotes. Readers will find the ‘100 Tough Questions and How to Answer Them’ particularly useful. I wish I had had this book as a resource when I was interviewing for a job years ago.” —YAHPHEN YVONNE CHANG Columbia University and Oxford University graduate Vice President, Debt Capital Markets—Investment Banking Group BMO Nesbitt Burns Inc. “Dr. Leanne’s How to Interview Like a Top MBA has codified the nuances of landing a job in a way that I—a former recruiter for McKinsey & Co. who currently hires for my Venture Capital Firm and, at the Board Level, selects senior management in portfolio companies—find extremely compelling. I highly recommend How to Interview Like a Top MBA!” —DALE LEFEBVRE MIT graduate, Harvard Business School and Harvard Law School graduate Former McKinsey & Company Consultant Managing Partner, Pharos Capital This page intentionally left blank. HOW TO INTERVIEW LIKE A TOP MBA Job-Winning Strategies from Headhunters, Fortune 100 Recruiters, and Career Counselors DR. SHEL......

Words: 73977 - Pages: 296

Interview

...Interview Interviewer: Chi Tam Interviewee: Chandra Lopez, Schmitt Elementary School Occupation: Teacher Question 1: Why did you decide to become a teacher? Response to Question 1: While I was student, I volunteered to tutor in Math class to help others students with a particularly difficult math concept that they were having trouble understanding. When I was able to show them in different way to approach the problem, they got it. Therefore, I knew that teaching might be the right choice for me in my future major. Question 2: Are you experienced teaching children? Response to Question 2: Yes, I have three years of internship experience in Johnson Elementary School and I think they have been really rewarding. Question 3: How long have you been a teacher? Response to Question 3: I have been a teacher for about 10 years. The first two years I taught at Garter Elementary School in Texas, and then I moved to California and have taught in this school almost eight years. Question 4: What grade do you teach? Do you enjoy teaching that grade? Response to Question 4: I teach 5th grade and have really enjoy teaching this grade because children in 5th grade are great age to teach. They are old enough to offer intelligent responses to serious questions, but young enough that they still want to please. Question 5: What qualities do you feel are most important for a teacher to have? Response to Question 5: Teachers set the tone in......

Words: 735 - Pages: 3

Interview

...Material World Religions Report - The Interview During Week Five, you should conduct the interview for your World Religions Report. Be sure to take good notes during the interview so you can use them as a reference for your final project. Following are suggestions for the interview: Before the Interview • Schedule the interview well in advance. • Clearly explain to the interviewee the reason for the interview. • Prepare a list of topics and questions ahead of time. Ask open-ended questions that avoid a yes or no answer. • Ask permission to record the interview with a tape recorder. Remind the interviewee that a recording can ensure accurate quotations. During the Interview • Introduce yourself, and restate the purpose of your interview. • Sit 4-10 feet from the interviewee (normal conversation distance). • Begin with an opening question that will be both enjoyable and easy to answer in order to establish rapport with your subject. •    Remember that the source is willingly discussing his/her religious views with you. Be sure to express respect and objectivity through your words, tone, and body language and refrain from offering judgment or criticism when the subject’s ideas differ from your own. • Take shorthand notes on the major/interesting points you feel are important. • Always thank the interviewee for his/her time. Remember to include these three questions in your interview: 1. What are the important......

Words: 334 - Pages: 2

Interview

...Notes for Interview – Industrial Relations & Human Resource Dear Friends I have prepared few questions that will help the fresher’s or beginners in interview for IR/HR deptt. I have prepared these questions from my own Experience when I was fresher and these questions were asked by HR/IR heads of various companies. So pl get print out of these notes and do prepration and crack the interview . Thanks & Regards Bhuvnesh Singh MSW 09569780456 What is the difference between PM and HR? Personnel Management is widely used few years back. The main task of PM was to maintain personal records of the employees of the organization. It was just a job to maintain the records (Database), sometime PM use to take care of the recruitment and joining formalities but never expected beyond that. Human Resource Management takes care of all the aspect, right from Strategic planning Recruitment Joining formalities Induction Training Employee relationship Handling Employee Grievances Attrition Retention Exit Formalities Define SHIFT and RELAY. Where the work of the same kind is carried out by two or more of sets of workers working during different periods of the day each of such sets is called RELAY and each of such periods is called SHIFT. Define Job? Job is a collection of task to be performed everyday. What is Job Analysis? Job analysis is the process of studying and collecting information......

Words: 7292 - Pages: 30

Interview

...Executive Summary Among methods of hiring and selecting potential employee, interview is arguably is the most powerful method for employer to select potential employee. Well, hiring qualified employees should be the primary focus for a company and organization. If a manager does not have a good interviewing skill or perhaps chosen the wrong selection method, he may ended up with hiring someone who might not able to fit the job position and therefore, the job could never be done nicely and perfectly. Thus, choosing a right method of recruitment and selection process has been known as an art as well as science within a business cultural. However, the hardest part of conducting an interview is for the manager to makes the applicant able to open up and willing to gives them the real answer of the question. What is employee selection? Employee selection can be explained by; it is a process of putting and selecting the right person on a right job position. In order to get a right person, selection process has to be done nicely so that it would match with the organization’s requirement as well as with the skills and qualification of the applicant. However, an effective selection process could be done or complete if only there is effective of matching. The organization has to look into the qualification of the applicant in order to select the best candidates. By putting the right person in a right job, it would definitely benefit the company by providing best quality......

Words: 3147 - Pages: 13

The Interview

...he Pres sentation T Title: The interview. The e Interview is in the thi ird Stage of f the recruit tment Cycle e  The e interview consists of 2 parties:  ndidate   1. Interviewee – Can ployer  2. Interviewer ‐ Emp The e Candidate will have t to prepare f for 3 stages s:  Stag ge 1: preparations bef fore the inte erview  to Start   When t o What are th hey looking g for  Type  o Know the T o What they NEED  ing Information   Gatheri o Study the o organization n  nfo. from Others  o Get Extra in o What they NEED   Preparing  e your stren ngths / weak kness   Analyze  Prepare e your comp petencies: A Adapt your skills as closely to the company’s needs as po ossible   Prepare e for the dif fficult quest tions   What have you lea arned from y your past w work experie ences?  nterviews   Mock in Stag ge 2: Things s to take ca are while pr reforming the interview w   First Im mpression M Matters   Be befo ore time (5 t to 10 minut tes)   Approp priate Dress :Formal , C Comfortable e   Be conf fident   Show yo ou have ma ade effort.   Emphas size the pos sitive sides o of your pers sonality   Use Pow wer words.   Have yo our body lan nguage   Don’t fo orget to be yourself, lo ooking natural and feeling confident is your b best asset  Stag ge 3: How t to close the e interview   How ha as the job va acancy arise en?   How wi ill my performance be measured? ?   Ask Abo out Next Ste eps (Before You Leave the Intervie ew)   Send a T Thank‐you Note Imme ediately Afte......

Words: 698 - Pages: 3

Interview

...Family Violence & Abuse Written Assignment Module 4 Course Project Part 1 Interview and Community Directory Personal Interview It’s OK to ask for help… Call if you need help… no one has the right to hurt you 1 (800) 4-A-CHILD 1 (800) 422-4453 By: Nichole George Table of Contents Page 1………………………………………………………..…………………Cover Page Page 2… ……………………………………………………………………Table of Contents Page 3- 4……………………………………………………...………Child Abuse & Neglect Page 5-12……………………………………...…………………………Interview in person Each state provides its own definitions of child abuse within civil and criminal statues, but they are informed by the following definitions of various forms of child abuse: Physical, Neglect, Sexual, Emotional and Psychological. According to Wallace, “The physical battering of children is not a new phenomenon.” Wallace also states, “Physical child abuse may be defined as any act that results in a non-accidental physical injury by a person who has care, custody, or control of a child. This definition contains two key aspects: The act is intentional or willful, and the act resulted in a physical injury. An accidental injury does not qualify as child abuse.” Children have suffered trauma at the hands of parents and caregivers since the beginning of recorded history. Child neglect is the leading form of child abuse in the United States and occurs when a caretaker fails to provide for a child’s basic needs, which include food...

Words: 2988 - Pages: 12

Interview

...Family Violence & Abuse Written Assignment Module 4 Course Project Part 1 Interview and Community Directory Personal Interview It’s OK to ask for help… Call if you need help… no one has the right to hurt you 1 (800) 4-A-CHILD 1 (800) 422-4453 By: Nichole George Table of Contents Page 1………………………………………………………..…………………Cover Page Page 2… ……………………………………………………………………Table of Contents Page 3- 4……………………………………………………...………Child Abuse & Neglect Page 5-12……………………………………...…………………………Interview in person Each state provides its own definitions of child abuse within civil and criminal statues, but they are informed by the following definitions of various forms of child abuse: Physical, Neglect, Sexual, Emotional and Psychological. According to Wallace, “The physical battering of children is not a new phenomenon.” Wallace also states, “Physical child abuse may be defined as any act that results in a non-accidental physical injury by a person who has care, custody, or control of a child. This definition contains two key aspects: The act is intentional or willful, and the act resulted in a physical injury. An accidental injury does not qualify as child abuse.” Children have suffered trauma at the hands of parents and caregivers since the beginning of recorded history. Child neglect is the leading form of child abuse in the United States and occurs when a caretaker fails to provide for a child’s basic needs, which include food,......

Words: 2986 - Pages: 12

Interview

...Interview (20% of course grade) – Students will conduct one interview, for a 10 minute class presentation-- face-to-face or by phone with a pastor, staff member, or leader from a local church or Christian organization other than their own. Select someone who has (a) 5 to 10, or (b) 10 plus years of experience in training others for ministry. Students are expected to report findings relating key concepts in the course textbooks. If possible, record the interview so you have some direct quotes for your paper. Presentations will be timed at 10 to 15 minutes each including questions and answers; time limit will be based on the number of presentations. A few interview questions you might use to guide the interview are as follows: Feel free to create your own, yet these will give you a start. * For what areas of ministry do you provide training? * What do you look for in a leader and why? (i.e., competencies, character, etc.) * How do you assess what a leader needs in terms of training? * What strategies or structures do you have in place or use for leadership training? Be sure to ask ‘probing type’ follow-up questions in your interview to clarify and expand your understanding of their equipping ministry; such as: give me an example, why would you say this, why did you select this training venue over others, etc. Don’t limit yourself to your interview guide, but ‘dig deeper’ to gain a broader perspective of their equipping process and why......

Words: 379 - Pages: 2

Interviews

...Interviews Abstract For people who are in the market for a new job, the interview process can be a nightmare. What should I know? What should I do? What should I say?..may be the questions that are clouding one’s mind on top of being nervous just to be nervous. There are dozens of questions one can be prepared for when walking in to a job interview. Some maybe personal, some business related, some unrelated, some uncomfortable, and then even some that one would be least expecting. In the following individual project, I will be discussing some common questions, and some that are not so common. I will also discuss some of the information one should be knowledgeable in prior to walking in to an interview, and then finally put together a small “thank you” paragraph in the final part of this project. Interviews Being prepared for an interview can be something that can make or break the entire discussion. This could lead one into gaining new employment or even losing the confidence and or admiration by a hiring manager. Ensuring that you are on top of your game when it comes to professionalism, sharpness, and likability is important, especially when you are in a first interview. Bottom line, first impressions do count in interviews. They can be the stepping stone to interview number two, actually being hired, or having your resume simply put in a pile with the rest of the resumes that will be filed in a cabinet for years to come. Being ready to answer some......

Words: 1368 - Pages: 6

Interview

...Interview Profile This paper is focused at looking at personality and attitudes traits in an individual. For purposes of the article and protection of the interviewee, he will be addressed, as Mr. X. Mr. X is an individual of sound mind aged 26. I recently interviewed him in an aim of learning more about him as a person. The first thing I wanted to learn about the individual was whether he preferred to watch an action in order to remember it, or was more comfortable with reading about it in books. To defend his answer, Mr. X told me that he was more inclined to remember an action more clearly if he watched the action take place rather than read about it. The individual explained that reading to him was strainers and boring. It involved a lot of concentration interpreting and visualizing (Benjamin, 2011, p.213). On the other hand, observing was more better since it involved that he saw exactly how the action took place. At one point when the individual was explaining this he gave an example, which he concluded that he learned to drive a car by observing his father do it. Mr. X explained that this was among the classical examples that not only he had experienced. To be more categorical, the individual pointed out that reading or theory in general was not part of his strength options. However, the individual explained that he was always doing his best in handling practical stuff involving observation and understanding. Unlike most people, who preferred to study in a quiet......

Words: 1405 - Pages: 6

Interview

...Rachelle Cinous Mrs. Parker U.S. Government 10 February 2016 What is Citizenship- Assignment Today I had the privilege to interview my father Clermeus Cinous. He was born in Haiti and he has been living in the United States for 22 years. Q: What inspired you to become a U.S. citizen? A: The reason why I wanted to become a citizen because I didn’t have the ability to show how I felt like for instance voting i didn’t have the advantage to get my opinion across. Q: What steps did you take as parts of the naturalization process? A: The steps I took to become a US citizen was to give fingerprints and pay for service, study the Citizenship book and take frequently in English that way I won’t have a hard responding to the person who are asking me the questions. After the exam I was relief because all my hard work paid off and I went to the Ceremony and swear on a Oath to give up loyalty to other nations and government. Q: How would you describe how you felt about the process? A: I was confident because I studied and I had faith that I was going to pass my Citizen test. Q: How has gaining citizenship changed your life? Is your daily life different because of gaining citizenship? A: It changed my life because I can now vote and let my opinions be known and I can enter my family which are in Haiti much easier Q: Do you feel the process was worthwhile? A: Yes, Im glad I got thru it and I was able to pass all the requirement to become a US......

Words: 556 - Pages: 3

Interview

...Interview Tips Preparation * Research the company website in depth - look at each section thoroughly - be prepared * Research the company through other websites - Google, Hoovers, Yahoo, etc. * Write down questions you have regarding the company that you can bring up during the interview Appearance * Remember that you never get a second chance to make a first impression! * Wear professional, conservative attire that is clean, ironed, and sophisticated * Avoid visual distractions, for example: do not wear a distracting tie; do not apply heavy makeup; do not spray too much cologne/perfume; do not wear high heels, etc. Simple yet professional is key. What to Bring * At least two copies of your resume * A copy of the job description * Pad of paper, a couple of pens, and a couple of pencils * A form of ID (driver's license) * Do not bother with a laptop, excessively big briefcase/purse, or too many bags Arrival * Arrive 15 minutes prior to interview time * Politely introduce yourself to the receptionist, ask his/her name and remember it * Turn all cell phones, PDAs, pagers, etc. off During the Interview * Do not bring up salary as it may appear that you are only focused on compensation * If you are asked about your current salary, state that your salary requirements fall within the criteria of the job description, but do not be specific - this may limit the amount you receive from the hiring company * If......

Words: 356 - Pages: 2

Interview

...5 things you should bring to the interview By Anne Cummings, Special to CareerBuilder ------------------------------------------------- Top of Form Find Jobs Keywords: eg: Registered Nurse or Sales Location: Los Angeles, CA or 90001 Job Category: | | Additional Search Options | Freshness: | Your Degree: Include all lower degrees | View By: | Title Only | Title & Details | | Advanced Search >> Bottom of Form So you have made it to the interview. Congratulations! Obviously you have already impressed the employer -- on paper. Now it is time to impress them face-to-face, and that means bringing your A game, or maybe your A+ game. Preparing for the interview is the very first step in the right direction towards success. Bringing your résumé and references are safe starting points, but you may not realize that there are other tools that will help you stand out. So what should job seekers bring to an interview, exactly? Here are five things that can make a difference in today's job market. 1. The "Brag Book" Scott Brent, a surgical sales representative and interviewing expert believes that the age of strict résumé and references are gone and job seekers should look to other outlets when impressing an interviewer. "Traditionally, people going on an interview would bring only a résumé and themselves to the interview," Brent says. "Those days are gone. I don't care if you are interviewing for a C-suite level job (CEO,......

Words: 1162 - Pages: 5