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.
166 answers
- 898.Transpose MatrixEasy
- 899.Binary GapEasy
- 908.Middle of the Linked ListEasy
- 919.Projection Area of 3D ShapesEasy
- 920.Uncommon Words from Two SentencesEasy
- 924.Fair Candy SwapEasy
- 928.Surface Area of 3D ShapesEasy
- 932.Monotonic ArrayEasy
- 933.Increasing Order Search TreeEasy
- 941.Sort Array By ParityEasy
- 944.Smallest Range IEasy
- 953.Reverse Only LettersEasy
- 958.Sort Array By Parity IIEasy
- 961.Long Pressed NameEasy
- 965.Unique Email AddressesEasy
- 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.