Coding interviewsbroken down
Stop memorizing solutions. We'll teach you the patterns behind every question so you can solve anything thrown at you — and land the offer you deserve.

“Interviewing is so important for your career growth, yet so easy to mess up.”
— The two engineers who created InterviewCrunch (we've been on both sides as interviewees and interviewers)
Get good at coding interviews
Our structured 4-step approach has helped hundreds of engineers go from “I don't even know where to start” to getting offers at top companies.
Adding to a list
O(n) or O(1)Here are two common methods to add elements to a list:
append()adds the element to the end of the listinsert()takes in a second argument that specifies what position to add the element at
Note
insert() is an O(n) complexity operation whereas append() is an O(1) operation, so use insert() sparingly. If you need to only add to the front, consider using a queue.
Solidify your knowledge on Python basics
Walk through our easy lessons on the coding fundamentals you need to know before you even begin practicing coding questions.
Familiarize yourself with the essential coding patterns
Get a step-by-step explanation of each coding pattern by walking through our visual slides. We make it easier for you to learn more efficiently and understand the concepts better.
Valid Palindrome
Question
A phrase is a palindrome if it reads the same forward and backward after ignoring all non-alphanumeric characters like punctuation, symbols, capitalization, and spaces.
Write a function which returns true if the given string is a palindrome, and false if it's not.
Input: Han ah!
Output: True
Input: Hugo
Output: False
Practice on real interview questions that follow an actual interview format
Practice problems that mirror a real interview experience, with no setup required to start implementing and testing code. Perfect for solo practice.

Profit from your improved interview skills
With enough practice, you'll be able to work your way through approaching almost any problem, and get job offers to improve both your career and personal development.
Ready to crush your next interview?
Join hundreds of engineers who leveled up their interview skills with InterviewCrunch. It's free to get started.