Easy LeetCode Problems: All 760,
With Python Solutions

Easy problems test whether you can turn a stated requirement into working code without fumbling the mechanics. The technique is usually named in the problem; the work is the edge cases.

The rating is LeetCode's own, carried through unchanged.

With a full solution
588
LeetCode Premium
105
Patterns
21

Eyes only

An easy problem, live, with someone watching.

In the live round, Stealth Interview reads the 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 says. It's a desktop app for macOS and Windows, invisible to screen sharing.

Page 1 of 4

Easy problems

Showing the first 200 of 760 problems. Problems with a complete Python solution are listed first, then by ascending problem number.

Easy problems
No.Problem
0001Two Sum
0009Palindrome Number
0013Roman to Integer
0014Longest Common Prefix
0020Valid Parentheses
0021Merge Two Sorted Lists
0026Remove Duplicates from Sorted Array
0027Remove Element
0028Find the Index of the First Occurrence in a String
0035Search Insert Position
0058Length of Last Word
0066Plus One
0067Add Binary
0069Sqrt(x)
0070Climbing Stairs
0083Remove Duplicates from Sorted List
0088Merge Sorted Array
0094Binary Tree Inorder Traversal
0100Same Tree
0101Symmetric Tree
0104Maximum Depth of Binary Tree
0108Convert Sorted Array to Binary Search Tree
0110Balanced Binary Tree
0111Minimum Depth of Binary Tree
0112Path Sum
0118Pascal's Triangle
0119Pascal's Triangle II
0121Best Time to Buy and Sell Stock
0125Valid Palindrome
0136Single Number
0141Linked List Cycle
0144Binary Tree Preorder Traversal
0145Binary Tree Postorder Traversal
0160Intersection of Two Linked Lists
0168Excel Sheet Column Title
0169Majority Element
0171Excel Sheet Column Number
0175Combine Two Tables
0181Employees Earning More Than Their Managers
0182Duplicate Emails
0183Customers Who Never Order
0190Reverse Bits
0191Number of 1 Bits
0193Valid Phone Numbers
0195Tenth Line
0196Delete Duplicate Emails
0197Rising Temperature
0202Happy Number
0203Remove Linked List Elements
0205Isomorphic Strings
0206Reverse Linked List
0217Contains Duplicate
0219Contains Duplicate II
0222Count Complete Tree Nodes
0225Implement Stack using Queues
0226Invert Binary Tree
0228Summary Ranges
0231Power of Two
0232Implement Queue using Stacks
0234Palindrome Linked List
0242Valid Anagram
0257Binary Tree Paths
0258Add Digits
0263Ugly Number
0268Missing Number
0278First Bad Version
0283Move Zeroes
0290Word Pattern
0292Nim Game
0303Range Sum Query - Immutable
0326Power of Three
0338Counting Bits
0342Power of Four
0344Reverse String
0345Reverse Vowels of a String
0349Intersection of Two Arrays
0350Intersection of Two Arrays II
0367Valid Perfect Square
0374Guess Number Higher or Lower
0383Ransom Note
0387First Unique Character in a String
0389Find the Difference
0392Is Subsequence
0401Binary Watch
0404Sum of Left Leaves
0405Convert a Number to Hexadecimal
0409Longest Palindrome
0412Fizz Buzz
0414Third Maximum Number
0415Add Strings
0434Number of Segments in a String
0441Arranging Coins
0448Find All Numbers Disappeared in an Array
0455Assign Cookies
0459Repeated Substring Pattern
0461Hamming Distance
0463Island Perimeter
0476Number Complement
0482License Key Formatting
0485Max Consecutive Ones
0492Construct the Rectangle
0495Teemo Attacking
0496Next Greater Element I
0500Keyboard Row
0501Find Mode in Binary Search Tree
0504Base 7
0506Relative Ranks
0507Perfect Number
0509Fibonacci Number
0511Game Play Analysis I
0520Detect Capital
0521Longest Uncommon Subsequence I
0530Minimum Absolute Difference in BST
0541Reverse String II
0543Diameter of Binary Tree
0551Student Attendance Record I
0557Reverse Words in a String III
0559Maximum Depth of N-ary Tree
0561Array Partition
0563Binary Tree Tilt
0566Reshape the Matrix
0572Subtree of Another Tree
0575Distribute Candies
0577Employee Bonus
0584Find Customer Referee
0586Customer Placing the Largest Number of Orders
0589N-ary Tree Preorder Traversal
0590N-ary Tree Postorder Traversal
0594Longest Harmonious Subsequence
0595Big Countries
0596Classes With at Least 5 Students
0598Range Addition II
0599Minimum Index Sum of Two Lists
0605Can Place Flowers
0607Sales Person
0610Triangle Judgement
0617Merge Two Binary Trees
0619Biggest Single Number
0620Not Boring Movies
0627Swap Sex of Employees
0628Maximum Product of Three Numbers
0637Average of Levels in Binary Tree
0643Maximum Average Subarray I
0645Set Mismatch
0653Two Sum IV - Input is a BST
0657Robot Return to Origin
0661Image Smoother
0671Second Minimum Node In a Binary Tree
0674Longest Continuous Increasing Subsequence
0680Valid Palindrome II
0682Baseball Game
0693Binary Number with Alternating Bits
0696Count Binary Substrings
0697Degree of an Array
0700Search in a Binary Search Tree
0703Kth Largest Element in a Stream
0704Binary Search
0705Design HashSet
0706Design HashMap
0709To Lower Case
07171-bit and 2-bit Characters
0724Find Pivot Index
0728Self Dividing Numbers
0733Flood Fill
0744Find Smallest Letter Greater Than Target
0746Min Cost Climbing Stairs
0747Largest Number At Least Twice of Others
0748Shortest Completing Word
0762Prime Number of Set Bits in Binary Representation
0766Toeplitz Matrix
0771Jewels and Stones
0783Minimum Distance Between BST Nodes
0796Rotate String
0804Unique Morse Code Words
0806Number of Lines To Write String
0812Largest Triangle Area
0819Most Common Word
0821Shortest Distance to a Character
0824Goat Latin
0830Positions of Large Groups
0832Flipping an Image
0836Rectangle Overlap
0844Backspace String Compare
0859Buddy Strings
0860Lemonade Change
0867Transpose Matrix
0868Binary Gap
0872Leaf-Similar Trees
0876Middle of the Linked List
0883Projection Area of 3D Shapes
0884Uncommon Words from Two Sentences
0888Fair Candy Swap
0892Surface Area of 3D Shapes
0896Monotonic Array
0897Increasing Order Search Tree
0905Sort Array By Parity
0908Smallest Range I
0914X of a Kind in a Deck of Cards
0917Reverse Only Letters
0922Sort Array By Parity II