Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

110 JavaScript leetcode solutions with different approaches

License

NotificationsYou must be signed in to change notification settings

Amanp30/javascript-leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains solutions to 100+ LeetCode problems written inJavaScript.
Each problem is solved in multiple ways — from brute force to optimized techniques.
The goal is to demonstrate different approaches and help improve problem-solving skills.

All solutions have been tested using a custom script. Most of them should work correctly,
though there may be occasional breakages depending on edge cases or updates on LeetCode's platform.

📚 I also write aboutNode.js, backend development, and JavaScript on my blog:
👉https://amanpareek.in

🛠️ You can also check out my other projects here:
👉https://amanpareek.in/projects.html

🚫 This project does not currently accept external contributions, as all content is generated dynamically from a MongoDB database.

📄 Problem List (110 problems)

#TitleLink
1Check if Grid Satisfies ConditionsLink
2Detect CapitalLink
3Get first positive integer in arrayLink
4Additive NumberLink
5Array PartitionLink
6Array of strings containing numbersLink
7Can Place FlowersLink
8Check if a String Contains Only DigitsLink
9Check if a String Contains Only Uppercase LettersLink
10Check if a String is a PalindromeLink
11Check if an Array is SortedLink
12Climbing StairsLink
13Contains Duplicate IILink
14Contains Duplicate elements in arrayLink
15Contiguous ArrayLink
16Convert String to Title CaseLink
17Count AnagramsLink
18Count Complete SubstringsLink
19Count Number of Vowels in a StringLink
20Count and SayLink
21Count primesLink
22Count the Number of Special Characters ILink
23Defuse the BombLink
24Degree of an ArrayLink
25Distribute CandiesLink
26Extract phone numbers from a block of textLink
27Extract version numbers from stringsLink
28Factorial of a numberLink
29Fibonacci NumberLink
30Find Length of the Last WordLink
31Find Smallest Letter Greater Than TargetLink
32Find Winner on a Tic Tac Toe GameLink
33Find and Remove element from arrayLink
34Find second smallest and second largest element in arrayLink
35Find the First Unique Character in a StringLink
36Find the Longest Word in a SentenceLink
37Find the largest number in arrayLink
38Finding the Resultant Array After Removing AnagramsLink
39Flatten arrayLink
40Generate Fibonacci SequenceLink
41Generate ParenthesesLink
42Group AnagramsLink
43Integer to RomanLink
44Intersection of Two ArraysLink
45Intersection of Two Arrays IILink
46Is array equalLink
47Isomorphic StringsLink
48Largest 3-Same-Digit Number in StringLink
49Largest Odd Number in StringLink
50Leaders in an ArrayLink
51Left Rotate Array in JavaScriptLink
52Length of the Longest PalindromeLink
53Longest Common PrefixLink
54Longest Harmonious SubsequenceLink
55Longest Palindromic SubstringLink
56Longest Substring with At Least K Repeating CharactersLink
57Longest Valid ParenthesesLink
58Majority ElementLink
59Match hex color codesLink
60Max Consecutive OnesLink
61Maximal SquareLink
62Maximal rectangleLink
63Maximum Average Subarray ILink
64Maximum Product SubarrayLink
65Maximum Product of Three NumbersLink
66Maximum Product of Word LengthsLink
67Maximum Score From Removing SubstringsLink
68Maximum Subarray SumLink
69Maximum Sum Circular SubarrayLink
70Min Cost Climbing StairsLink
71Minimum Cost of Buying Candies With DiscountLink
72Minimum Index Sum of Two ListsLink
73Move All Zeros to the End of an ArrayLink
74Multiply StringsLink
75Number of Students Unable to Eat LunchLink
76Number of Substrings Containing All Three CharactersLink
77Pascal's TriangleLink
78Pascal's Triangle IILink
79Path with Maximum GoldLink
80Plus OneLink
81Product of array except selfLink
82Relative RanksLink
83Remove All Falsy Values from an ArrayLink
84Remove Duplicate LettersLink
85Remove Outermost ParenthesesLink
86Remove the Last Element from an ArrayLink
87Replace WordsLink
88Reverse Every Word in a StringLink
89Reverse StringLink
90Reverse Vowels of a StringLink
91Reverse the Odd-Length Words in a StringLink
92Reverse words in a stringLink
93Right Rotate Array in JavaScriptLink
94Roman to IntegerLink
95Search Insert PositionLink
96Set Matrix ZeroesLink
97Shortest PalindromeLink
98Single NumberLink
99Sort Characters By FrequencyLink
100Sort ColorsLink
101Split a String into a Fibonacci SequenceLink
102Sum of DigitsLink
103Three Consecutive OddsLink
104Time Needed to Buy TicketsLink
105Two SumLink
106Union of Two Sorted ArraysLink
107Valid AnagramLink
108Validate Email AddressLink
109Word PatternLink
110check whether one string is a rotation of anotherLink

📄 License

This project is licensed under the MIT License – see theLICENSE file for details.

About

110 JavaScript leetcode solutions with different approaches

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp