100 Medium-Level Python Coding Interview Questions with Solution Links
Arrays & Strings
- Two Sum [Solution: [Link]
- 3Sum [Solution: [Link]
- Container With Most Water [Solution: [Link]
- Longest Substring Without Repeating Characters [Solution:
[Link]
- Longest Palindromic Substring [Solution:
[Link]
- Group Anagrams [Solution: [Link]
- Multiply Strings [Solution: [Link]
- Minimum Window Substring [Solution: [Link]
- String to Integer (atoi) [Solution: [Link]
- Valid Parentheses [Solution: [Link]
- Decode String [Solution: [Link]
- Longest Common Prefix [Solution: [Link]
- Word Search [Solution: [Link]
- Letter Combinations of a Phone Number [Solution:
[Link]
- Count and Say [Solution: [Link]
Linked Lists
- Add Two Numbers [Solution: [Link]
- Reverse Linked List II [Solution: [Link]
- Merge Two Sorted Lists [Solution: [Link]
- Odd Even Linked List [Solution: [Link]
- Linked List Cycle II [Solution: [Link]
- Intersection of Two Linked Lists [Solution:
[Link]
- Copy List with Random Pointer [Solution:
[Link]
- Remove Nth Node From End [Solution: [Link]
- Reorder List [Solution: [Link]
- Sort List (merge sort) [Solution: [Link]
Trees & Graphs
- Binary Tree Level Order Traversal [Solution:
[Link]
- Serialize/Deserialize Binary Tree [Solution:
[Link]
- Validate Binary Search Tree [Solution: [Link]
- Lowest Common Ancestor of BST [Solution:
[Link]
- Construct Binary Tree from Preorder & Inorder [Solution:
[Link]
- Balanced Binary Tree [Solution: [Link]
- Path Sum [Solution: [Link]
- Maximum Depth of Binary Tree [Solution:
[Link]
- Sum of Left Leaves [Solution: [Link]
- Populating Next Right Pointers [Solution:
[Link]
- Number of Islands [Solution: [Link]
- Word Ladder [Solution: [Link]
- Course Schedule [Solution: [Link]
- Clone Graph [Solution: [Link]
- Graph Valid Tree [Solution: [Link]
- Minimum Height Trees [Solution: [Link]
- Serialize N-ary Tree [Solution: [Link]
- Binary Tree Zigzag Level Order [Solution:
[Link]
- Graph: Max Area of Island [Solution: [Link]
- Topological Sort [Solution: [Link]
Dynamic Programming
- Climbing Stairs [Solution: [Link]
- Coin Change [Solution: [Link]
- Longest Increasing Subsequence [Solution:
[Link]
- Word Break [Solution: [Link]
- Decode Ways [Solution: [Link]
- House Robber II [Solution: [Link]
- Edit Distance [Solution: [Link]
- Unique Paths [Solution: [Link]
- Jump Game [Solution: [Link]
- Partition Equal Subset Sum [Solution: [Link]
- Triangle [Solution: [Link]
- Maximum Subarray [Solution: [Link]
- Palindromic Substrings [Solution: [Link]
- Longest Palindromic Subsequence [Solution:
[Link]
- Matrix Chain Multiplication [Solution: [Link]
Backtracking
- Subsets [Solution: [Link]
- Permutations [Solution: [Link]
- Combination Sum II [Solution: [Link]
- Letter Case Permutation [Solution: [Link]
- Generate Parentheses [Solution: [Link]
- Word Search II [Solution: [Link]
- Sudoku Solver [Solution: [Link]
- Palindrome Partitioning [Solution: [Link]
- N-Queens [Solution: [Link]
- Restore IP Addresses [Solution: [Link]
Sliding Window
- Sliding Window Maximum [Solution: [Link]
- Minimum Size Subarray Sum [Solution:
[Link]
- Longest Repeating Character Replacement [Solution:
[Link]
- Fruits Into Baskets [Solution: [Link]
- Find All Anagrams in a String [Solution:
[Link]
- Longest Substring with At Most Two Distinct Characters [Solution:
[Link]
- Longest Subarray with Sum K [Solution:
[Link]
Two Pointers
- 3Sum Closest [Solution: [Link]
- 4Sum [Solution: [Link]
- Move Zeroes [Solution: [Link]
- Remove Duplicates from Sorted Array II [Solution:
[Link]
- Sort Colors [Solution: [Link]