Interactive LeetCode Problems: All 21, With Python Solutions

Every problem in this library that LeetCode tags Interactive 21 in total, 4 of them with a complete Python solution, a worked example and the time and space complexity of the approach.

  • 21 problems
  • 4 Easy
  • 12 Medium
  • 5 Hard

Interactive problems by difficulty

Problems with a complete Python solution are listed first, then by ascending problem number.

Easy (4)

#ProblemDifficultyTopics
278First Bad VersionEasyBinary Search, Interactive
374Guess Number Higher or LowerEasyBinary Search, Interactive
157Read N Characters Given Read4PremiumEasyArray, Interactive, Simulation
2728Count Houses in a Circular StreetPremiumEasyArray, Interactive

Medium (12)

#ProblemDifficultyTopics
1237Find Positive Integer Solution for a Given EquationMediumMath, Two Pointers, Binary Search +1
277Find the CelebrityPremiumMediumGraph, Two Pointers, Interactive
702Search in a Sorted Array of Unknown SizePremiumMediumArray, Binary Search, Interactive
1236Web CrawlerPremiumMediumDepth-First Search, Breadth-First Search, String +1
1428Leftmost Column with at Least a OnePremiumMediumArray, Binary Search, Interactive +1
1533Find the Index of the Large IntegerPremiumMediumArray, Binary Search, Interactive
1538Guess the Majority in a Hidden ArrayPremiumMediumArray, Math, Interactive
1618Maximum Font to Fit a Sentence in a ScreenPremiumMediumArray, String, Binary Search +1
1778Shortest Path in a Hidden GridPremiumMediumDepth-First Search, Breadth-First Search, Array +2
1810Minimum Path Cost in a Hidden GridPremiumMediumDepth-First Search, Breadth-First Search, Graph +5
2782Number of Unique CategoriesPremiumMediumUnion Find, Counting, Interactive
2936Number of Equal Numbers BlocksPremiumMediumArray, Binary Search, Interactive

Hard (5)

#ProblemDifficultyTopics
1095Find in Mountain ArrayHardArray, Binary Search, Interactive
158Read N Characters Given read4 II - Call Multiple TimesPremiumHardArray, Interactive, Simulation
489Robot Room CleanerPremiumHardBacktracking, Interactive
843Guess the WordHardArray, Math, String +2
1274Number of Ships in a RectanglePremiumHardArray, Divide and Conquer, Interactive

When the Interactive problem arrives live

Stealth Interview is a desktop app for macOS and Windows. It reads the coding problem off your screen, returns a working solution with a step-by-step explanation and its time and space complexity, and transcribes what the interviewer is saying — while staying invisible to screen sharing.