forked fromjyxia/LeetCode-JavaScript
- Notifications
You must be signed in to change notification settings - Fork0
ArhanAnsari/LeetCode-JavaScript
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- Tried to use optimal solutions as much as I can. Most solutions are from the LeetCode community.
- Written inAirbnb JavaScript style.
- A work in progress.
- If you find something wrong or the complexity is not good, you are very welcome to contribute your better solutions.
- 7. Reverse Integer -Solution
- 8. String to Integer (atoi) -Solution
- 9. Palindrome Number -Solution
- 14. Longest Common Prefix -Solution
- 19. Remove Nth Node From End of List -Solution
- 21. Merge Two Sorted Lists -Solution
- 24. Swap Nodes in Pairs -Solution
- 28. Implement strStr() -Solution
- 38. Count and Say -Solution
- 66. Plus One -Solution
- 67. Add Binary -Solution
- 70. Climbing Stairs -Solution
- 83. Remove Duplicates from Sorted List -Solution
- 88. Merge Sorted Array -Solution
- 100. Same Tree -Solution
- 101. Symmetric Tree -Solution
- 102. Binary Tree Level Order Traversal -Solution
- 104. Maximum Depth of Binary Tree -Solution
- 110. Balanced Binary Tree -Solution
- 111. Minimum Depth of Binary Tree -Solution
- 112. Path Sum -Solution
- 118. Pascal's Triangle -Solution
- 119. Pascal's Triangle II -Solution
- 125. Valid Palindrome -Solution
- 160. Intersection of Two Linked Lists -Solution
- 165. Compare Version Numbers -Solution
- 169. Majority Element -Solution
- 172. Factorial Trailing Zeroes -Solution
- 190. Reverse Bits -Solution
- 191. Number of 1 Bits -Solution
- 198. House Robber -Solution
- 202. Happy Number -Solution
- 203. Remove Linked List Elements -Solution
- 204. Count Primes -Solution
- 205. Isomorphic Strings -Solution
- 206. Reverse Linked List -Solution
- 217. Contains Duplicate -Solution
- 219. Contains Duplicate II -Solution
- 223. Rectangle Area -Solution
- 225. Implement Stack using Queues -Solution
- 226. Invert Binary Tree -Solution
- 228. Summary Ranges -Solution
- 231. Power of Two -Solution
- 232. Implement Queue using Stacks -Solution
- 234. Palindrome Linked List -Solution
- 235. Lowest Common Ancestor of a Binary Search Tree -Solution
- 237. Delete Node in a Linked List -Solution
- 242. Valid Anagram -Solution
- 258. Add Digits -Solution
- 263. Ugly Number -Solution
- 278. First Bad Version -Solution
- 283. Move Zeroes -Solution
- 290. Word Pattern -Solution
- 299. Bulls and Cows -Solution
- 303. Range Sum Query - Immutable -Solution
- 328. Odd Even Linked List -Solution
- 3. Longest Substring Without Repeating Characters -Solution
- 22. Generate Parentheses -Solution
- 24. Swap Nodes in Pairs -Solution
- 35. Search Insert Position Characters -Solution
- 39. Combination Sum -Solution
- 46. Permutations -Solution
- 53. Maximum Subarray -Solution
- 54. Spiral Matrix -Solution
- 59. Spiral Matrix II -Solution
- 62.Unique Paths -Solution
- 64.Minimum Path Sum -Solution
- 75. Sort Colors -Solution
- 77.Combinations -Solution
- 94. Binary Tree Inorder Traversal -Solution
- 96. Unique Binary Search Trees -Solution
- 108. Convert Sorted Array to Binary Search Tree -Solution
- 116. Populating Next Right Pointers in Each Node -Solution
- 121. Best Time to Buy and Sell Stock -Solution
- 122. Best Time to Buy and Sell Stock II -Solution
- 136. Single Number -Solution
- 141. Linked List Cycle -Solution
- 144. Binary Tree Preorder Traversal -Solution
- 153.Find Minimum in Rotated Sorted Array -Solution
- 230. Kth Smallest Element in a BST -Solution
- 238. Product of Array Except Self -Solution
- 260. Single Number III -Solution
- 268. Missing Number -Solution
- 318. Maximum Product of Word Lengths -Solution
- 319. Bulb Switcher -Solution
About
Solve LeetCode Problems in JavaScript. JavaScript solutions for LeetCode
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- JavaScript99.4%
- Java0.6%