LeetCode Study Guide

Algorithm and data-structure problems with solutions in Ruby, Python, Go, TypeScript, and Elixir.

Solve classic interview problems in the language of your choice. Each problem page shows the approach and solutions in Ruby, Python, Go, TypeScript, and Elixir.

# Problem Difficulty
1 1. Two Sum easy
347 347. Top K Frequent Elements medium
49 49. Group Anagrams medium
# Problem Difficulty
125 125. Valid Palindrome easy
# Problem Difficulty
121 121. Best Time to Buy and Sell Stock easy
# Problem Difficulty
20 20. Valid Parentheses easy
# Problem Difficulty
206 206. Reverse Linked List easy
# Problem Difficulty
104 104. Maximum Depth of Binary Tree easy
# Problem Difficulty
198 198. House Robber medium
70 70. Climbing Stairs easy