Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
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 }}
linjiajian999
/
leetCode-javaScript
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
leetCode-javaScript
/
src
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
leetCode-javaScript
/
src
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
100. Same Tree.js
100. Same Tree.js
1002. Find Common Characters.js
1002. Find Common Characters.js
101. Symmetric Tree.js
101. Symmetric Tree.js
11. Container With Most Water.js
11. Container With Most Water.js
112. Path Sum.js
112. Path Sum.js
114. Flatten Binary Tree to Linked List.js
114. Flatten Binary Tree to Linked List.js
122. Best Time to Buy and Sell Stock II.js
122. Best Time to Buy and Sell Stock II.js
125. Valid Palindrome.js
125. Valid Palindrome.js
128. Longest Consecutive Sequence.js
128. Longest Consecutive Sequence.js
2. Add Two Numbers.js
2. Add Two Numbers.js
20. Valid Parentheses.js
20. Valid Parentheses.js
303. Range Sum Query - Immutable.js
303. Range Sum Query - Immutable.js
344. Reverse String.js
344. Reverse String.js
345. Reverse Vowels of a String.js
345. Reverse Vowels of a String.js
38. Count and Say.js
38. Count and Say.js
383. Ransom Note.js
383. Ransom Note.js
387. First Unique Character in a String.js
387. First Unique Character in a String.js
404. Sum of Left Leaves.js
404. Sum of Left Leaves.js
413. Arithmetic Slices.js
413. Arithmetic Slices.js
42. Trapping Rain Water.js
42. Trapping Rain Water.js
434. Number of Segments in a String.js
434. Number of Segments in a String.js
459. Repeated Substring Pattern.js
459. Repeated Substring Pattern.js
509. Fibonacci Number.js
509. Fibonacci Number.js
520. Detect Capital.js
520. Detect Capital.js
521. Longest Uncommon Subsequence I.js
521. Longest Uncommon Subsequence I.js
541. Reverse String II.js
541. Reverse String II.js
551. Student Attendance Record I.js
551. Student Attendance Record I.js
557. Reverse Words in a String III.js
557. Reverse Words in a String III.js
566. Reshape the Matrix.js
566. Reshape the Matrix.js
58. Length of Last Word.js
58. Length of Last Word.js
62. Unique Paths.js
62. Unique Paths.js
63. Unique Paths II.js
63. Unique Paths II.js
661. Image Smoother.js
661. Image Smoother.js
665. Non-decreasing Array.js
665. Non-decreasing Array.js
680. Valid Palindrome II.js
680. Valid Palindrome II.js
689. Maximum Sum of 3 Non-Overlapping Subarrays.js
689. Maximum Sum of 3 Non-Overlapping Subarrays.js
697. Degree of an Array.js
697. Degree of an Array.js
709. To Lower Case.js
709. To Lower Case.js
714. Best Time to Buy and Sell Stock with Transaction Fee.js
714. Best Time to Buy and Sell Stock with Transaction Fee.js
724. Find Pivot Index.js
724. Find Pivot Index.js
746. Min Cost Climbing Stairs.js
746. Min Cost Climbing Stairs.js
747. Largest Number At Least Twice of Others.js
747. Largest Number At Least Twice of Others.js
78. Subsets.js
78. Subsets.js
788. Rotated Digits.js
788. Rotated Digits.js
804. Unique Morse Code Words.js
804. Unique Morse Code Words.js
819. Most Common Word.js
819. Most Common Word.js
824. Goat Latin.js
824. Goat Latin.js
830. Positions of Large Groups.js
830. Positions of Large Groups.js
832. Flipping an Image.js
832. Flipping an Image.js
867. Transpose Matrix.js
867. Transpose Matrix.js
896. Monotonic Array.js
896. Monotonic Array.js
90. Subsets II.js
90. Subsets II.js
905. Sort Array By Parity.js
905. Sort Array By Parity.js
922. Sort Array By Parity II.js
922. Sort Array By Parity II.js
977. Squares of a Sorted Array.js
977. Squares of a Sorted Array.js
989. Add to Array-Form of Integer.js
989. Add to Array-Form of Integer.js
View all files
You can’t perform that action at this time.