LeetCode
LeetCode Question Answers
How to solve LeetCode problems in a coding interview: the idea behind each solution and a working answer in Python, Java, C++ and TypeScript. Open the original problem on LeetCode, try it yourself, then compare with our answer. New answers are added every day.
754 answers
- 422.Valid Word SquareEasy
- 423.Reconstruct Original Digits from EnglishMedium
- 424.Longest Repeating Character ReplacementMedium
- 425.Word SquaresHard
- 432.All O`one Data StructureHard
- 433.Minimum Genetic MutationMedium
- 434.Number of Segments in a StringEasy
- 435.Non-overlapping IntervalsMedium
- 436.Find Right IntervalMedium
- 437.Path Sum IIIMedium
- 438.Find All Anagrams in a StringMedium
- 440.K-th Smallest in Lexicographical OrderHard
- 441.Arranging CoinsEasy
- 442.Find All Duplicates in an ArrayMedium
- 443.String CompressionMedium
- 444.Sequence ReconstructionMedium
- 445.Add Two Numbers IIMedium
- 446.Arithmetic Slices II - SubsequenceHard
- 447.Number of BoomerangsMedium
- 448.Find All Numbers Disappeared in an ArrayEasy
- 449.Serialize and Deserialize BSTMedium
- 450.Delete Node in a BSTMedium
- 452.Minimum Number of Arrows to Burst BalloonsMedium
- 453.Minimum Moves to Equal Array ElementsMedium
- 454.4Sum IIMedium
- 455.Assign CookiesEasy
- 456.132 PatternMedium
- 457.Circular Array LoopMedium
- 458.Poor PigsHard
- 459.Repeated Substring PatternEasy
- 460.LFU CacheHard
- 462.Minimum Moves to Equal Array Elements IIMedium
- 463.Island PerimeterEasy
- 464.Can I WinMedium
- 465.Optimal Account BalancingHard
- 467.Unique Substrings in Wraparound StringMedium
- 468.Validate IP AddressMedium
- 469.Convex PolygonMedium
- 471.Encode String with Shortest LengthHard
- 472.Concatenated WordsHard
- 473.Matchsticks to SquareMedium
- 474.Ones and ZeroesMedium
- 475.HeatersMedium
- 476.Number ComplementEasy
- 477.Total Hamming DistanceMedium
- 480.Sliding Window MedianHard
- 481.Magical StringMedium
- 482.License Key FormattingEasy
- 483.Smallest Good BaseHard
- 484.Find PermutationMedium
Beyond LeetCode
Real interviews also test system design, SQL, machine learning and behavioral answers. Practise those with KatInterview problems, browse by topic, or read our company interview guides.
LeetCode is a trademark of LeetCode LLC. KatInterview is not affiliated with LeetCode.