Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
feiffy
leetcode
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
leetcode
/
solution
/
0200-0299
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
leetcode
/
solution
/
0200-0299
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0200.Number of Islands
0200.Number of Islands
0201.Bitwise AND of Numbers Range
0201.Bitwise AND of Numbers Range
0202.Happy Number
0202.Happy Number
0203.Remove Linked List Elements
0203.Remove Linked List Elements
0204.Count Primes
0204.Count Primes
0205.Isomorphic Strings
0205.Isomorphic Strings
0206.Reverse Linked List
0206.Reverse Linked List
0207.Course Schedule
0207.Course Schedule
0208.Implement Trie (Prefix Tree)
0208.Implement Trie (Prefix Tree)
0209.Minimum Size Subarray Sum
0209.Minimum Size Subarray Sum
0210.Course Schedule II
0210.Course Schedule II
0211.Design Add and Search Words Data Structure
0211.Design Add and Search Words Data Structure
0212.Word Search II
0212.Word Search II
0213.House Robber II
0213.House Robber II
0214.Shortest Palindrome
0214.Shortest Palindrome
0215.Kth Largest Element in an Array
0215.Kth Largest Element in an Array
0216.Combination Sum III
0216.Combination Sum III
0217.Contains Duplicate
0217.Contains Duplicate
0218.The Skyline Problem
0218.The Skyline Problem
0219.Contains Duplicate II
0219.Contains Duplicate II
0220.Contains Duplicate III
0220.Contains Duplicate III
0221.Maximal Square
0221.Maximal Square
0222.Count Complete Tree Nodes
0222.Count Complete Tree Nodes
0223.Rectangle Area
0223.Rectangle Area
0224.Basic Calculator
0224.Basic Calculator
0225.Implement Stack using Queues
0225.Implement Stack using Queues
0226.Invert Binary Tree
0226.Invert Binary Tree
0227.Basic Calculator II
0227.Basic Calculator II
0228.Summary Ranges
0228.Summary Ranges
0229.Majority Element II
0229.Majority Element II
0230.Kth Smallest Element in a BST
0230.Kth Smallest Element in a BST
0231.Power of Two
0231.Power of Two
0232.Implement Queue using Stacks
0232.Implement Queue using Stacks
0233.Number of Digit One
0233.Number of Digit One
0234.Palindrome Linked List
0234.Palindrome Linked List
0235.Lowest Common Ancestor of a Binary Search Tree
0235.Lowest Common Ancestor of a Binary Search Tree
0236.Lowest Common Ancestor of a Binary Tree
0236.Lowest Common Ancestor of a Binary Tree
0237.Delete Node in a Linked List
0237.Delete Node in a Linked List
0238.Product of Array Except Self
0238.Product of Array Except Self
0239.Sliding Window Maximum
0239.Sliding Window Maximum
0240.Search a 2D Matrix II
0240.Search a 2D Matrix II
0241.Different Ways to Add Parentheses
0241.Different Ways to Add Parentheses
0242.Valid Anagram
0242.Valid Anagram
0243.Shortest Word Distance
0243.Shortest Word Distance
0244.Shortest Word Distance II
0244.Shortest Word Distance II
0245.Shortest Word Distance III
0245.Shortest Word Distance III
0246.Strobogrammatic Number
0246.Strobogrammatic Number
0247.Strobogrammatic Number II
0247.Strobogrammatic Number II
0248.Strobogrammatic Number III
0248.Strobogrammatic Number III
0249.Group Shifted Strings
0249.Group Shifted Strings
0250.Count Univalue Subtrees
0250.Count Univalue Subtrees
0251.Flatten 2D Vector
0251.Flatten 2D Vector
0252.Meeting Rooms
0252.Meeting Rooms
0253.Meeting Rooms II
0253.Meeting Rooms II
0254.Factor Combinations
0254.Factor Combinations
0255.Verify Preorder Sequence in Binary Search Tree
0255.Verify Preorder Sequence in Binary Search Tree
0256.Paint House
0256.Paint House
0257.Binary Tree Paths
0257.Binary Tree Paths
0258.Add Digits
0258.Add Digits
0259.3Sum Smaller
0259.3Sum Smaller
0260.Single Number III
0260.Single Number III
0261.Graph Valid Tree
0261.Graph Valid Tree
0262.Trips and Users
0262.Trips and Users
0263.Ugly Number
0263.Ugly Number
0264.Ugly Number II
0264.Ugly Number II
0265.Paint House II
0265.Paint House II
0266.Palindrome Permutation
0266.Palindrome Permutation
0267.Palindrome Permutation II
0267.Palindrome Permutation II
0268.Missing Number
0268.Missing Number
0269.Alien Dictionary
0269.Alien Dictionary
0270.Closest Binary Search Tree Value
0270.Closest Binary Search Tree Value
0271.Encode and Decode Strings
0271.Encode and Decode Strings
0272.Closest Binary Search Tree Value II
0272.Closest Binary Search Tree Value II
0273.Integer to English Words
0273.Integer to English Words
0274.H-Index
0274.H-Index
0275.H-Index II
0275.H-Index II
0276.Paint Fence
0276.Paint Fence
0277.Find the Celebrity
0277.Find the Celebrity
0278.First Bad Version
0278.First Bad Version
0279.Perfect Squares
0279.Perfect Squares
0280.Wiggle Sort
0280.Wiggle Sort
0281.Zigzag Iterator
0281.Zigzag Iterator
0282.Expression Add Operators
0282.Expression Add Operators
0283.Move Zeroes
0283.Move Zeroes
0284.Peeking Iterator
0284.Peeking Iterator
0285.Inorder Successor in BST
0285.Inorder Successor in BST
0286.Walls and Gates
0286.Walls and Gates
0287.Find the Duplicate Number
0287.Find the Duplicate Number
0288.Unique Word Abbreviation
0288.Unique Word Abbreviation
0289.Game of Life
0289.Game of Life
0290.Word Pattern
0290.Word Pattern
0291.Word Pattern II
0291.Word Pattern II
0292.Nim Game
0292.Nim Game
0293.Flip Game
0293.Flip Game
0294.Flip Game II
0294.Flip Game II
0295.Find Median from Data Stream
0295.Find Median from Data Stream
0296.Best Meeting Point
0296.Best Meeting Point
0297.Serialize and Deserialize Binary Tree
0297.Serialize and Deserialize Binary Tree
0298.Binary Tree Longest Consecutive Sequence
0298.Binary Tree Longest Consecutive Sequence
0299.Bulls and Cows
0299.Bulls and Cows
View all files
You can’t perform that action at this time.