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
- 907.Koko Eating BananasMedium
- 908.Middle of the Linked ListEasy
- 909.Stone GameMedium
- 910.Nth Magical NumberHard
- 911.Profitable SchemesHard
- 912.Random Pick with WeightMedium
- 913.Random Flip MatrixMedium
- 914.Random Point in Non-overlapping RectanglesMedium
- 916.Decoded String at IndexMedium
- 918.Reachable Nodes In Subdivided GraphHard
- 919.Projection Area of 3D ShapesEasy
- 920.Uncommon Words from Two SentencesEasy
- 921.Spiral Matrix IIIMedium
- 922.Possible BipartitionMedium
- 923.Super Egg DropHard
- 924.Fair Candy SwapEasy
- 926.Find and Replace PatternMedium
- 928.Surface Area of 3D ShapesEasy
- 929.Groups of Special-Equivalent StringsMedium
- 930.All Possible Full Binary TreesMedium
- 931.Maximum Frequency StackHard
- 932.Monotonic ArrayEasy
- 933.Increasing Order Search TreeEasy
- 934.Bitwise ORs of SubarraysMedium
- 935.Orderly QueueHard
- 936.RLE IteratorMedium
- 938.Numbers At Most N Given Digit SetHard
- 940.Fruit Into BasketsMedium
- 941.Sort Array By ParityEasy
- 942.Super PalindromesHard
- 943.Sum of Subarray MinimumsMedium
- 944.Smallest Range IEasy
- 945.Snakes and LaddersMedium
- 946.Smallest Range IIMedium
- 947.Online ElectionMedium
- 948.Sort an ArrayMedium
- 949.Cat and MouseHard
- 951.Partition Array into Disjoint IntervalsMedium
- 952.Word SubsetsMedium
- 953.Reverse Only LettersEasy
- 955.Complete Binary Tree InserterMedium
- 958.Sort Array By Parity IIEasy
- 961.Long Pressed NameEasy
- 963.Three Equal PartsHard
- 964.Minimize Malware Spread IIHard
- 965.Unique Email AddressesEasy
- 966.Binary Subarrays With SumMedium
- 967.Minimum Falling Path SumMedium
- 968.Beautiful ArrayMedium
- 969.Number of Recent CallsEasy
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.