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.
Get solid on the Python basics
Walk through our easy lessons on the coding fundamentals you need to know before you even begin practicing coding questions.
Use ← → arrow keys
Learn the patterns behind every interview question
Get a step-by-step explanation of each coding pattern by walking through our visual slides. Watch the algorithm move step by step: it sticks in a way a wall of text never does.
Valid Palindrome
EasyQuestion
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 questions that feel like the real interview
Practice problems that mirror a real interview experience, with no setup required to start implementing and testing code. Perfect for solo practice.

Walk in confident, walk out with an offer
With enough practice, you can work through almost any problem they throw at you, and walk into the interview knowing it. That's what gets offers.
Ready to crush your next interview?
Join hundreds of engineers who leveled up their interview skills with InterviewCrunch. It's free to get started.