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
Accelerator
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 }}
liushengnnan
/
leetcode-javascript
Public
forked from
chihungyu1116/leetcode-javascript
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
develop
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
83 Commits
83 Commits
Folders and files
Name
Name
Last commit message
Last commit date
Code Pattern
Code Pattern
Problems
Problems
.gitignore
.gitignore
1. Two Sum.js
1. Two Sum.js
10. Regular Expresion Matching.js
10. Regular Expresion Matching.js
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
1013. Partition Array Into Three Parts With Equal Sum.js
1013. Partition Array Into Three Parts With Equal Sum.js
1017. Convert to Base -2.js
1017. Convert to Base -2.js
102 Binary Tree Level Order Traversal.js
102 Binary Tree Level Order Traversal.js
103 Binary Tree Zigzag Level Order Traversal.js
103 Binary Tree Zigzag Level Order Traversal.js
1034. Coloring A Border.js
1034. Coloring A Border.js
104 Maximum Depth of Binary Tree.js
104 Maximum Depth of Binary Tree.js
1046. Last Stone Weight.js
1046. Last Stone Weight.js
1047. Remove All Adjacent Duplicates In String.js
1047. Remove All Adjacent Duplicates In String.js
105 Construct Binary Tree from Preorder and Inorder Traversal.js
105 Construct Binary Tree from Preorder and Inorder Traversal.js
106 Construct Binary Tree from Inorder and Postorder Traversal.js
106 Construct Binary Tree from Inorder and Postorder Traversal.js
107 Binary Tree Level Order Traversal II.js
107 Binary Tree Level Order Traversal II.js
1071. Greatest Common Divisor of Strings.js
1071. Greatest Common Divisor of Strings.js
108 Convert Sorted Array to Binary Search Tree.js
108 Convert Sorted Array to Binary Search Tree.js
109. Convert Sorted List to Binary Search Tree.js
109. Convert Sorted List to Binary Search Tree.js
11 Container With Most Water.js
11 Container With Most Water.js
110 Balanced Binary Tree.js
110 Balanced Binary Tree.js
1108. Defanging an IP Address.js
1108. Defanging an IP Address.js
111 Minimum Depth of Binary Tree.js
111 Minimum Depth of Binary Tree.js
112 Path Sum.js
112 Path Sum.js
1122. Relative Sort Array.js
1122. Relative Sort Array.js
113. Path Sum II.js
113. Path Sum II.js
1137. N-th Tribonacci Number.js
1137. N-th Tribonacci Number.js
1138. Alphabet Board Path.js
1138. Alphabet Board Path.js
114 Flatten Binary Tree to Linked List.js
114 Flatten Binary Tree to Linked List.js
1143. Longest Common Subsequence.js
1143. Longest Common Subsequence.js
116 Populating Next Right Pointers in Each Node.js
116 Populating Next Right Pointers in Each Node.js
117 Populating Next Right Pointer.js
117 Populating Next Right Pointer.js
117 Populating Next Right Pointers in Each Node II.js
117 Populating Next Right Pointers in Each Node II.js
1170. Compare Strings by Frequency of the Smallest Character.js
1170. Compare Strings by Frequency of the Smallest Character.js
1171. Remove Zero Sum Consecutive Nodes from Linked List.js
1171. Remove Zero Sum Consecutive Nodes from Linked List.js
1175. Prime Arrangements.js
1175. Prime Arrangements.js
118 Pascal's Triangle.js
118 Pascal's Triangle.js
1185. Day of the Week.js
1185. Day of the Week.js
119 Pascal's Triangle II.js
119 Pascal's Triangle II.js
1190. Reverse Substrings Between Each Pair of Parentheses.js
1190. Reverse Substrings Between Each Pair of Parentheses.js
1191. K-Concatenation Maximum Sum.js
1191. K-Concatenation Maximum Sum.js
12 Integer to Roman.js
12 Integer to Roman.js
120 Triangle.js
120 Triangle.js
1209. Remove All Adjacent Duplicates in String II.js
1209. Remove All Adjacent Duplicates in String II.js
121 Best Time to Buy and Sell Stock.js
121 Best Time to Buy and Sell Stock.js
1217. Play with Chips.js
1217. Play with Chips.js
122 Best Time to Buy and Sell Stock II.js
122 Best Time to Buy and Sell Stock II.js
1221. Split a String in Balanced Strings.js
1221. Split a String in Balanced Strings.js
123 Best Time to Buy and Sell Stock III.js
123 Best Time to Buy and Sell Stock III.js
124 Binary Tree Maximum Path Sum.js
124 Binary Tree Maximum Path Sum.js
1249. Minimum Remove to Make Valid Parentheses.js
1249. Minimum Remove to Make Valid Parentheses.js
125 Valid Palindrome.js
125 Valid Palindrome.js
1250. Check If It Is a Good Array.js
1250. Check If It Is a Good Array.js
1252. Cells with Odd Values in a Matrix.js
1252. Cells with Odd Values in a Matrix.js
126 Word Ladder II.js
126 Word Ladder II.js
127 Word Ladder.js
127 Word Ladder.js
128 Longest Consecutive Sequence.js
128 Longest Consecutive Sequence.js
1281. Subtract the Product and Sum of Digits of an Integer.js
1281. Subtract the Product and Sum of Digits of an Integer.js
129 Sum Root to Leaf Numbers.js
129 Sum Root to Leaf Numbers.js
1290. Convert Binary Number in a Linked List to Integer.js
1290. Convert Binary Number in a Linked List to Integer.js
1295. Find Numbers with Even Number of Digits.js
1295. Find Numbers with Even Number of Digits.js
13 Roman to Integer.js
13 Roman to Integer.js
130. Surrounded Regions.js
130. Surrounded Regions.js
1300. Sum of Mutated Array Closest to Target.js
1300. Sum of Mutated Array Closest to Target.js
1309. Decrypt String from Alphabet to Integer Mapping.js
1309. Decrypt String from Alphabet to Integer Mapping.js
131 Palindrome Partitioning.js
131 Palindrome Partitioning.js
1315. Sum of Nodes with Even-Valued Grandparent.js
1315. Sum of Nodes with Even-Valued Grandparent.js
1323. Maximum 69 Number.js
1323. Maximum 69 Number.js
133 Clone Graph.js
133 Clone Graph.js
1332. Remove Palindromic Subsequences.js
1332. Remove Palindromic Subsequences.js
1342. Number of Steps to Reduce a Number to Zero.js
1342. Number of Steps to Reduce a Number to Zero.js
1351. Count Negative Numbers in a Sorted Matrix.js
1351. Count Negative Numbers in a Sorted Matrix.js
1356. Sort Integers by The Number of 1 Bits.js
1356. Sort Integers by The Number of 1 Bits.js
136 Single Number.js
136 Single Number.js
1365. How Many Numbers Are Smaller Than the Current Number.js
1365. How Many Numbers Are Smaller Than the Current Number.js
137 Single Number II.js
137 Single Number II.js
1370. Increasing Decreasing String.js
1370. Increasing Decreasing String.js
1374. Generate a String With Characters That Have Odd Counts.js
1374. Generate a String With Characters That Have Odd Counts.js
138 Copy List With Random Pointer.js
138 Copy List With Random Pointer.js
1385. Find the Distance Value Between Two Arrays.js
1385. Find the Distance Value Between Two Arrays.js
1389. Create Target Array in the Given Order.js
1389. Create Target Array in the Given Order.js
139 Word Break.js
139 Word Break.js
14 Longest Common Prefix.js
14 Longest Common Prefix.js
140 Word Break II.js
140 Word Break II.js
1402. Reducing Dishes.js
1402. Reducing Dishes.js
1408. String Matching in an Array.js
1408. String Matching in an Array.js
141 Linked List Cycle.js
141 Linked List Cycle.js
142. Linked List Cycle II.js
142. Linked List Cycle II.js
1422. Maximum Score After Splitting a String.js
1422. Maximum Score After Splitting a String.js
143. Reorder List.js
143. Reorder List.js
144 Binary Tree Preorder Traversal My Submissions Question.js
144 Binary Tree Preorder Traversal My Submissions Question.js
144 Binary Tree Preorder Traversal.js
144 Binary Tree Preorder Traversal.js
1441. Build an Array With Stack Operations.js
1441. Build an Array With Stack Operations.js
1446. Consecutive Characters.js
1446. Consecutive Characters.js
1447. Simplified Fractions.js
1447. Simplified Fractions.js
145 Binary Tree Post Order Traversal.js
145 Binary Tree Post Order Traversal.js
146 LRU Cache.js
146 LRU Cache.js
View all files
About
Leetcode Solution using Javascript
Activity
Stars
1
star
Watchers
0
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.