12 Simple Coding Interviews Do's and Dont's
Many interviewers intentionally ask the question in an ambiguous fashion to invite clarification questions. Before proceeding, ask the interviewer some clarification questions such as
- “What should I do if the array is empty”
- “Can I expect the input to be reasonable?”
- “Can there be duplicates in the input array?”
See also: FAANG Software Engineer Interview
If you need to assume something - double check your assumption with the interviewer!
- Always let your interviewer know what you are thinking as he/she will be as interested in your process of thought as your solution. Also, if you’re stuck, they may provide hints if they know what you’re struggling with.
- Approach the problem as if you were trying to solve it with a colleague, in which case it would be more of a discussion than a test.
- It’s totally normal to struggle at a problem especially if you’ve never seen it. Be calm, start from a brute force solution, and mention to the interviewer that you’ll now start to optimize. Start from a few basic cases and try to generalize into a solution.
- Listen - don’t miss a hint. Your interviewer is trying to assist you! Being able to take hints shows that you are open to new ideas.
- Never stop optimizing. If you think your algorithm reaches the best possible run time, then try to improve on the space complexity.
- Write clean code. Break a long function into smaller independent pieces shows good design, makes your code understandable and easily testable.
- If using Java, proper use of an interface, generics, final/static are all a plus.
- Discuss trade-offs. For this problem, why did you use a hashmap instead of a hashset? Why is it better to use iteration instead of recursion? If a problem can be solved in two ways – implementation A requires linear time complexity and quadratic space complexity and implementation B requires quadratic space complexity and linear time complexity, when would you use which?
- Saying what you know can get you easy points. Specifically it will convey a lot of your knowledge while spending little interview time. For example, “I would normally use StringBuilder, but in the interest of time, I’ll use the + syntax because it is quicker to write.”If you are familiar with a more complex data structure or algorithm that fits a particular situation, mention it. Be ready for follow up questions. (ex: skip lists or binary indexed trees)
- Don’t stress small syntactical errors. If you can’t remember whether the method is substring(start, end) or substring(start, length), just pick one and let your interviewer know. In the real world you could just check the documentation or even autocomplete. Don’t worry about occasionally missing a semicolon either.
- Interviewers tend to leave the last ten minutes of the interview for you to ask about the company culture, work environment, interesting projects they’ve worked on, etc. So prior to the interview, do some research about the company or the team and come prepared with some questions to show your interest.
Begin Your FAANG Journey With Our Software Engineer Interview Program
Related Posts
- Sharing my SDE1 Amazon OA experience.
- How do you balance LeetCode practice with soft skills preparation?
- Amazon SDE interview questions
- Got into FAANG
- Roles and Responsibilities of a Technical Program Manager at Facebook
- What to expect: Google, Facebook and Amazon Technical Program Manager interview
- Machine Learning Engineer Interview Questions For FAANG - What to Expect
- Apple SWE interview process?
- Associate Product Manager - Roles, Responsibilities and Interview
- Time required for TPM interview preparation for FAANG
- Common Amazon Coding Interview Questions
- Paypal_Software_Engineer_Onsite_Interview
- Amazon Sr front-end engineer phone interview
- How do I prepare for (interview) Google Early Career Campus - Software Engineer/Software Developer
- Amazon OA
- Success and scale bring broad responsibility
- Software Engineering Manager Salary Guide
- FAANG software engineer salary
- How to prepare for Google coding challenge
- [FAANG Interview Preparation - A Step-by-Step Guide to Crack FAANG Interview](../FAANG interview preparation - A step by step guide to crack FAANG interview)
- System Design Resources
- door_dash_sde_interview_guide
- What to expect: Google, Facebook and Amazon Product Manager interview questions
- Interview questions for Content Marketing Manager/Specialist/Strategist/Associate
- Using Amazon STAR method to crack your Amazon interview ( with techniques and examples )
- Google L3 interview suggestions
- Amazon Bar Raiser with Program Manager
- Interview questions for Marketing Manager/Specialist/Strategist/Associate
- How do people not working on product directly show visibility?
- Everything You Need to Know About Apple’s SDM Interview Process
- Why FAANG Is A Good Choice For Software Engineers - Top 5 Reasons
- Qualcomm Interview coming up (US)
- Going to bomb a leetcode interview in an hour :(
- Amazon grad SDE interview
- Question
- Common Amazon Interview Questions (With Preparation Tips)
- Mock coding interview - How to prepare online (with InterviewHelp)
- system-design-vs.product-design
- Benckmarking and System Design
- Amazon System Design Interview Questions
- Roles and Responsibilities of a Software Development Manager
- Amazon’s SDM Interview Process - Everything You Need to Know
- Facebook Coding Interview Questions - Your Complete Coding Interview Guide
- Upcoming Google interview (SWE3)
- Netflix interview questions - A complete step-by-step preparation guide
- Paypal Software Engineer Intern Interview Process
- MAANG interview do’s and don’ts
- SDE interview preparation - tips
- How to evaluate your technical aptitude for FAANG companies
- Data Engineer Interview Questions
- SDM RoadMap
- amazon-vs-facebook
- First Google Interview (Round 0) next week, share suggestions on what to expect and what to do in this last week
- Insist on the highest standards - Amazon interview preparation
- Solution Architect Interview Questions for Amazon and Google - What to expect
- l4_google_interview_in_the_next_2_days
- What to Expect: Google, Facebook and Amazon Product Marketing Manager Interview
- Software Engineering Manager Interview Questions - InterviewHelp
- Common Apple interview questions (with preparation tips)
- Facebook product design interview questions and preparation guide
- Amazon vs Google - Which one has the Harder SDM Interview Process
- Amazon vs Facebook, who has the harder interview process for TPM
- i_did_that_much_for_a_company_interview
- Skills needed to be SDM at MAANG companies
- are-you-ready-for-amazon
- SDE Career Path - InterviewHelp
- PayPal Android SWE karat interview
- FAANG-software-engineer-interview-process
- Strive to be Earth’s best employer
- Have backbone - disagree and commit
- Looking for insights for Amazon sde2 interview
- Googlyness - How to pass the Googlyness interview
- Google onsite coming up