Coding interview
{{Short description|Problem-based job interview technique}}
{{Use mdy dates|date=May 2015}}
A coding interview, technical interview, programming interview or Microsoft interview is a technical problem-based job interview technique to assess applicants for a computer programming or software development position. Modern coding interview techniques were pioneered by Microsoft during the 1990s and adopted by other large technology companies including Amazon, Facebook, and Google.[http://ifdefined.com/blog/post/Google-interview.aspx Applicants blog] after Google interview. {{Webarchive|url=https://web.archive.org/web/20110313021040/http://ifdefined.com/blog/post/Google-interview.aspx |date=March 13, 2011 }}[https://www.npr.org/templates/story/story.php?storyId=1405340 Job Interviews Get Creative, NPR 2003]. Retrieved from the World Wide Web on January 16, 2006. Coding interviews test candidates' technical knowledge, coding ability, problem solving skills, and creativity, typically on a whiteboard. Candidates usually have a degree in computer science, information science, computer engineering or electrical engineering, and are asked to solve programming problems, algorithms, or puzzles.{{citation |title=Programming Interviews Exposed: Secrets to Landing Your Next Job |author=John Mongan |date=December 11, 2023 |edition=2nd |isbn=978-0-470-12167-2 |publisher=Wrox |url-access=registration |url=https://archive.org/details/programminginter00mong_0 }}{{Cite book|title=Cracking the coding interview : 189 programming questions and solutions|last=McDowell|year=2015|first=Gayle Laakmann|author-link=Gayle Laakmann McDowell|isbn=978-0-9847828-5-7|edition=6th|location=Palo Alto, CA|oclc=913477191}} Coding interviews are typically conducted in-person or virtually.
Innovation
Microsoft's interview style was distinctive in that it concerned technical knowledge, problem solving and creativity as opposed to the goal and weaknesses interviews most companies used at the time. Initially based on Bill Gates's obsession with puzzles, many of the puzzles presented during interviews started off being Fermi problems, or sometimes logic problems, and have eventually transitioned over the years into questions relevant to programming.{{cite book | last = Poundstone | author-link = William Poundstone | first = William | title = How Would You Move Mount Fuji | location = Boston | publisher = Little, Brown and Company | year = 2003 | pages = [https://archive.org/details/howwouldyoumovem00poun/page/50 50–90] | isbn = 0-316-91916-0 | url = https://archive.org/details/howwouldyoumovem00poun/page/50 }} As William Poundstone wrote, "Puzzles test competitive edge as well as intelligence. Like business or football, a logic puzzle divides the world into winners and losers. You either get the answer, or you don't. … Winning has to matter."{{rp|62}}
Questions
The questions asked during a coding interview are crafted to determine a candidate's problem solving, coding and design abilities. Eccentric questions (such as "Which of the fifty states would you remove?") test a candidate's ability to come to a decision and articulate it.{{rp|67}} Candidates answering questions should consider the use of technology in the present and future, and user scenarios. Some questions involve projects that the candidate has worked on in the past.
A coding interview is intended to seek out creative thinkers and those who can adapt their solutions to rapidly changing and dynamic scenarios.{{cn|date=July 2022}}
Typical questions that a candidate might be asked to answer during the second-round interview include:{{Cite web|title=Typical Coding Interview Questions|url=https://omnijobs.co/en/blog/typical-coding-interview-questions|date=4 September 2024|publisher=OmniJobs}}
- Design a GPS navigation unit for a hiker.
- Design a communication device for Canadian park rangers.
- Shift all elements of a circular array by k bytes, using no extra memory.
= Manhole test =
Microsoft popularized the question of why manhole covers are typically round (in some countries) when they began asking it as a job interview question. Originally meant as a psychological assessment of how one approaches a question with more than one correct answer, the problem has produced a number of alternative explanations, from the tautological ("Manhole covers are round because manholes are round.") to the philosophical.
By 2012, the practice of asking lateral thinking questions had declined at companies including Microsoft and Google. A study by San Francisco State University associate professor of psychology Chris Wright found that puzzle interview questions annoyed job applicants. "Methods that had a transparent relationship between test content and job duties, such as interviews, work samples, and reference checks were perceived more favorably," Wright wrote in a research paper entitled "Why Are Manhole Covers Round? A Laboratory Study of Reactions to Puzzle Interviews". Poundstone, who had written puzzle interview guides for Microsoft and Google, referred to puzzle questions in 2012 as "a sort of fad" that lost popularity because of a lack of evidence of their effectiveness.{{cite magazine |last1=White |first1=Martha C. |title=No-Brainer: 'Brainteaser' Job Interview Questions Don't Work |url=https://business.time.com/2012/10/23/no-brainer-brainteaser-job-interview-questions-dont-work/ |access-date=July 4, 2022 |magazine=Time |date=October 23, 2012}}