Skip to content

JavaScript solutions to Leetcode questions

License

NotificationsYou must be signed in to change notification settings

timothyshores/LeetCode-JavaScript-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

My Javascript solutions to LeetCode questions

LeetCode Profile: https://leetcode.com/timothyshores/

ProblemDifficultySolution
1. Two SumEasyJavaScript
3. Longest Substring Without Repeating CharactersMediumJavaScript
12. Int To RomanMediumJavaScript
21. Merge Two Sorted ListsEasyJavaScript
38. Count and SayMediumJavaScript
49. Group AnagramsMediumJavaScript
50. Pow(x, n)MediumJavaScript
78. SubsetsMediumJavaScript
83. Remove Duplicates from Sorted ListEasyJavaScript
94. Binary Tree Inorder TraversalEasyJavaScript
101. Symmetric TreeEasyJavaScript
102. Binary Tree Level Order TraversalMediumJavaScript
103. Binary Tree Zigzag Level Order TraversalMediumJavaScript
104. Maximum Depth of Binary TreeEasyJavaScript
111. Minimum Depth of Binary TreeEasyJavaScript
121. Best Time to Buy and Sell StockEasyJavaScript
125. Valid PalindromeEasyJavaScript
128. Longest Consecutive SequenceMediumJavaScript
136. Single NumberEasyJavaScript
144. Binary Tree Preorder TraversalEasyJavaScript
155. Min StackMediumJavaScript
172. Factorial Trailing ZeroesMediumJavaScript
187. Repeated DNA SequencesMediumJavaScript
217. Contains DuplicateEasyJavaScript
232. Implement Queue using StacksEasyJavaScript
238. Product of Array Except SelfEasyJavaScript
242. Valid AnagramEasyJavaScript
258. Add Digits.jsEasyJavaScript
278. First Bad VersionEasyJavaScript
283. Move ZeroesEasyJavaScript
287. Find the Duplicate NumberMediumJavaScript
229. Bulls And CowsMediumJavaScript
326. Power of ThreeEasyJavaScript
345. Reverse Vowels of a StringEasyJavaScript
347. Top K Frequent ElementsMediumJavaScript
384. Shuffle an ArrayMediumJavaScript
387. First Unique Character in a StringEasyJavaScript
482. FormattingEasyJavaScript
509. Fibonacci NumberEasyJavaScript
589. N-ary Tree Preorder TraversalEasyJavaScript
653. Two Sum IV - Input is a BSTEasyJavaScript
669. Trim a Binary Search TreeMediumJavaScript
701. Insert into a Binary Search TreeMediumJavaScript
739. Daily TemperaturesMediumJavaScript
771. Jewels And StonesEasyJavaScript
796. Rotate StringEasyJavaScript
844. Backspace String CompareEasyJavaScript
836. Rectangle OverlapEasyJavaScript
896. Monotonic ArrayEasyJavaScript
938. Range Sum of BSTMediumJavaScript
965. Univalued Binary Tree.jsEasyJavaScript
1047. Remove All Adjacent Duplicates In StringEasyJavaScript
1108. Defanging An IP AddressEasyJavaScript
1170. Compare Strings by Frequency of the Smallest CharacterMediumJavaScript
1207. Unique Number of OccurrencesEasyJavaScript
1281. Subtract the Product and Sum of Digits of an IntegerEasyJavaScript
1365. How Many Numbers Are Smaller Than the Current NumberEasyJavaScript
1413. Minimum Value to Get Positive Step by Step SumEasyJavaScript
1431. Kids With the Greatest Number of CandiesEasyJavaScript
1470. Shuffle The ArrayEasyJavaScript
1480. Running Sum of 1d ArrayEasyJavaScript
1512. Number of Good PairsEasyJavaScript
1528. Shuffle StringEasyJavaScript
1572. Matrix Diagonal SumEasyJavaScript
1598. Crawler Log FolderEasyJavaScript
1614. Maximum Nesting Depth of the ParenthesesEasyJavaScript
1662. Check If Two String Arrays are EquivalentEasyJavaScript
1672. Richest Customer WealthEasyJavaScript
1678. Goal Parser InterpretationEasyJavaScript
1732. Find the Highest Altitude.jsEasyJavaScript
1791. Find Center of Star GraphEasyJavaScript
1832. Check if the Sentence Is PangramEasyJavaScript
1859. Sorting the SentenceEasyJavaScript
1920. Build Array From PermutationEasyJavaScript
1929. Concatenation of ArrayEasyJavaScript
2006. Count Number of Pairs With Absolute Difference KEasyJavaScript
2011. Final Value of Variable After Performing OperationsEasyJavaScript
2043. Simple Bank SystemMediumJavaScript
2103. Rings and RodsEasyJavaScript
2108. Find First Palindromic String in the ArrayEasyJavaScript
2114. Maximum Number of Words Found In SentencesEasyJavaScript
2574. Left and Right Sum DifferencesEasyJavaScript

Releases

No releases published

Packages

No packages published