Top 100 coding questions in Python
I have shared basic to advanced-level interview questions and answers. BASIC LEVEL (1-20) 1. Reverse a String 2. Check if a string is a palindrome 3. Find Factorial 4. Fibonacci Sequence 5. Check Prime Number 6. Find Maximum in List 7. Remove Duplicates from List 8. Count Character Frequency 9. Check Anagram 10. Find Missing Number in Array 11. Find Second Largest Number 12. Check Armstrong Number 13. Sum of Digits 14. Find GCD 15. Find LCM 16. Count Vowels in String 17. Check if String Contains Only Digits 18. Find Intersection of Two Lists 19. Find Union of Two Lists 20. Check Balanced Parentheses INTERMEDIATE LEVEL (21-60) 21. Two Sum Problem 22. Find Duplicates in Array 23. Move Zeros to End 24. Rotate Array 25. Find Majority Element 26. Binary Search 27. Merge Sorted Arrays 28. First Non-Repeating Character 29. Implement Stack using List 30. Implement Queue using List 31. Reverse Linked List 32. Detect Cycle in Linked List 33. Find Middle of Linked List 34. Implement Binary Tree 35. Tree Traversals 36. Maximum Depth of Binary Tree 37. Validate Binary Search Tree 38. Find All Permutations 39. Find All Subsets 40. Longest Substring Without Repeating Characters 41. Container With Most Water 42. 3Sum Problem 43. Merge Intervals 44. Find Peak Element 45. Search in Rotated Sorted Array 46. Word Break Problem 47. Longest Palindromic Substring 48. Implement LRU Cache 49. Find Kth Largest Element 50. Top K Frequent Elements ADVANCED LEVEL (51-80) 51. Serialize and Deserialize Binary Tree 52. Find Median from Data Stream 53. Regular Expression Matching 54. Wildcard Matching 55. Edit Distance 56. Coin Change Problem 57. Longest Increasing Subsequence 58. Maximum Subarray Sum (Kadane’s Algorithm) 59. House Robber 60. Climbing Stairs 61. Unique Paths 62. Decode Ways 63. Word Search 64. Number of Islands 65. Course Schedule (Cycle Detection) 66. Minimum Window Substring 67. Sliding Window Maximum 68. Trapping Rain Water 69. Largest Rectangle in Histogram 70. Merge K Sorted Lists 71. Sort Colors (Dutch National Flag) 72. Find First and Last Position 73. Spiral Matrix 74. Set Matrix Zeros 75. Valid Sudoku 76. N-Queens Problem 77. Sudoku Solver 78. Evaluate Reverse Polish Notation 79. Implement Trie (Prefix Tree) 80. Design Twitter ADVANCED ALGORITHMS & DATA STRUCTURES (81-100) 81. LFU Cache 82. Find Median in Two Sorted Arrays 83. Longest Consecutive Sequence 84. Alien Dictionary 85. Minimum Path Sum 86. Palindrome Partitioning 87. Reconstruct Itinerary 88. Minimum Height Trees 89. Word Ladder 90. Count of Smaller Numbers After Self 91. Maximal Rectangle 92. Burst Balloons 93. Serialize and Deserialize N-ary Tree 94. Flatten Nested List Iterator 95. Max Points on a Line 96. Word Search II 97. Candy Crush (1D) 98. Employee Free Time 99. Race Car 100. Swim in Rising Water
Top 100 coding questions in Python Read More »










