Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marttp/js-interview-practice
บันทึกการทำ Leetcode in JavaScript รวมถึง Data Structures พื้นฐานสำหรับ Technical Interviews
https://github.com/marttp/js-interview-practice
data-structures leetcode-solutions
Last synced: about 2 months ago
JSON representation
บันทึกการทำ Leetcode in JavaScript รวมถึง Data Structures พื้นฐานสำหรับ Technical Interviews
- Host: GitHub
- URL: https://github.com/marttp/js-interview-practice
- Owner: marttp
- Created: 2022-11-19T09:55:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T23:23:44.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T10:57:56.420Z (almost 2 years ago)
- Topics: data-structures, leetcode-solutions
- Language: JavaScript
- Homepage:
- Size: 16.2 MB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ไอต้าวแว่นทำ LeetCode - JS Special Editions
Hi everyone, this repository is used for storing the solutions for LeetCode in Javascript. The support resources for my video playlist for support learners.
## Video Playlist
[![ไอต้าวแว่นทำ LeetCode - Tackle JS Special Editions](https://img.youtube.com/vi/IWZhdcGAXRA/0.jpg)](https://youtube.com/playlist?list=PLm3A9eDaMzukbLKitQWP_ydRmnQj8jpd9)
## LeetCode questions by pattern
### Array & HashTable
- [x] [Two Sum](https://leetcode.com/problems/two-sum/)
- [x] [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/)
- [x] [Maximum Subarray](https://leetcode.com/problems/maximum-subarray/)
- [x] [Contains Duplicate](https://leetcode.com/problems/contains-duplicate/)
- [x] [Longest Consecutive Sequence](https://leetcode.com/problems/longest-consecutive-sequence/)### Two-Pointers
- [x] [Move Zeroes](https://leetcode.com/problems/two-sum/)
- [x] [Two Sum II - Input Array Is Sorted](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/)
- [x] [Squares of a Sorted Array](https://leetcode.com/problems/squares-of-a-sorted-array/)
- [x] [Container With Most Water](https://leetcode.com/problems/container-with-most-water/)### Sliding Windows
- [x] [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/)
- [x] [Fruit Into Baskets](https://leetcode.com/problems/fruit-into-baskets/)
- [x] [Minimum Size Subarray Sum](https://leetcode.com/problems/minimum-size-subarray-sum/)### String
- [x] [Valid Palindrome](https://leetcode.com/problems/valid-palindrome/)
- [x] [Valid Anagram](https://leetcode.com/problems/valid-anagram/)
- [x] [Reverse Vowels of a String](https://leetcode.com/problems/reverse-vowels-of-a-string/)
- [x] [Reverse Words in a String III](https://leetcode.com/problems/group-anagrams/)
- [x] [Group Anagrams](https://leetcode.com/problems/reverse-words-in-a-string-iii/)### Linked List
- [x] [Remove Linked List Elements](https://leetcode.com/problems/remove-linked-list-elements/)
- [x] [Remove Duplicates from Sorted List](https://leetcode.com/problems/remove-duplicates-from-sorted-list/)
- [x] [Add Two Numbers](https://leetcode.com/problems/add-two-numbers/)
- [x] [Odd Even Linked List](https://leetcode.com/problems/odd-even-linked-list/)
- [x] [Remove Nth Node From End of List](https://leetcode.com/problems/remove-nth-node-from-end-of-list/)
- [x] [LRU Cache](https://leetcode.com/problems/lru-cache/)### Fast & Slow Pointers
- [x] [Linked List Cycle](https://leetcode.com/problems/linked-list-cycle/)
- [x] [Middle of the Linked List](https://leetcode.com/problems/middle-of-the-linked-list/)
- [x] [Linked List Cycle II](https://leetcode.com/problems/linked-list-cycle-ii/)
- [x] [Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/)### Modified Binary Search
- [x] [First Bad Version](https://leetcode.com/problems/first-bad-version/)
- [x] [Find First and Last Position of Element in Sorted Array](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
- [x] [Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix/)### Stack & Queue
- [x] [Valid Parentheses](https://leetcode.com/problems/valid-parentheses/)
- [x] [Evaluate Reverse Polish Notation](https://leetcode.com/problems/evaluate-reverse-polish-notation/)
- [x] [Find the Winner of the Circular Game](https://leetcode.com/problems/find-the-winner-of-the-circular-game)### Monotonic Stack
- [x] [Next Greater Element I](https://leetcode.com/problems/next-greater-element-i/)
- [x] [Next Greater Element II](https://leetcode.com/problems/next-greater-element-ii/)
- [x] [Daily Temperatures](https://leetcode.com/problems/daily-temperatures/)
- [x] [Online Stock Span](https://leetcode.com/problems/online-stock-span/)### Backtracking
- [x] [Subsets](https://leetcode.com/problems/subsets/)
- [x] [Permutations](https://leetcode.com/problems/permutations/)
- [x] [Combination Sum](https://leetcode.com/problems/combination-sum/)
- [x] [Generate Parentheses](https://leetcode.com/problems/generate-parentheses/)
- [x] [Letter Combinations of a Phone Number](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)### Merge Interval
- [x] [Merge Intervals](https://leetcode.com/problems/merge-intervals/)
- [x] [Insert Interval](https://leetcode.com/problems/insert-interval/)
- [x] [Non-overlapping Intervals](https://leetcode.com/problems/non-overlapping-intervals/)### Cyclic Sort
- [x] [Missing Number](https://leetcode.com/problems/missing-number/)
- [x] [Find All Numbers Disappeared in an Array](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array/)
- [x] [First Missing Positive](https://leetcode.com/problems/first-missing-positive/)### Tree - DFS
- [x] [Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree/)
- [x] [Path Sum](https://leetcode.com/problems/path-sum/)
- [x] [Merge Two Binary Trees](https://leetcode.com/problems/merge-two-binary-trees/)
- [x] [Validate Binary Search Tree](https://leetcode.com/problems/validate-binary-search-tree/)
- [x] [Sum Root to Leaf Numbers](https://leetcode.com/problems/sum-root-to-leaf-numbers/)
- [x] [Path Sum II](https://leetcode.com/problems/path-sum-ii/)
- [x] [Binary Tree Maximum Path Sum](https://leetcode.com/problems/binary-tree-maximum-path-sum/)### Tree - BFS
- [x] [Minimum Depth of Binary Tree](https://leetcode.com/problems/minimum-depth-of-binary-tree/)
- [x] [Average of Levels in Binary Tree](https://leetcode.com/problems/average-of-levels-in-binary-tree/)
- [x] [Binary Tree Level Order Traversal](https://leetcode.com/problems/binary-tree-level-order-traversal/)
- [x] [Binary Tree Zigzag Level Order Traversal](https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/)
- [x] [Binary Tree Right Side View](https://leetcode.com/problems/binary-tree-right-side-view/)## Trie
- [x] [Implement Trie (Prefix Tree)](https://leetcode.com/problems/implement-trie-prefix-tree/)
- [x] [Replace Words](https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/)
- [x] [Design Add and Search Words Data Structure](https://leetcode.com/problems/design-add-and-search-words-data-structure/)
- [x] [Search Suggestions System](https://leetcode.com/problems/search-suggestions-system/)### Top K Elements
- [x] [Kth Largest Element in an Array](https://leetcode.com/problems/kth-largest-element-in-an-array/)
- [x] [Kth Smallest Element in a BST](https://leetcode.com/problems/kth-smallest-element-in-a-bst/)
- [x] [K Closest Points to Origin](https://leetcode.com/problems/k-closest-points-to-origin/)
- [x] [Top K Frequent Elements](https://leetcode.com/problems/top-k-frequent-elements/)
- [x] [Sort Characters By Frequency](https://leetcode.com/problems/sort-characters-by-frequency/)
- [x] [Find K Closest Elements](https://leetcode.com/problems/find-k-closest-elements/)
- [x] [Reorganize String](https://leetcode.com/problems/reorganize-string/)### K-way Merge
- [x] [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/)
- [x] [Merge k Sorted Lists](https://leetcode.com/problems/merge-k-sorted-lists/)
- [x] [Find K Pairs with Smallest Sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)
- [x] [Kth Smallest Element in a Sorted Matrix](https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/)### 2 Heaps
- [x] [Find Median from Data Stream](https://leetcode.com/problems/find-median-from-data-stream/)
### Graph
- [x] [Clone Graph](https://leetcode.com/problems/clone-graph/)
- [x] [Find if Path Exists in Graph - DFS](https://leetcode.com/problems/find-if-path-exists-in-graph/)
- [x] [Find if Path Exists in Graph - BFS](https://leetcode.com/problems/find-if-path-exists-in-graph/)
- [x] [All Paths From Source to Target](https://leetcode.com/problems/all-paths-from-source-to-target/)
- [x] [Keys and Rooms](https://leetcode.com/problems/keys-and-rooms/)
- [x] [Word Search](https://leetcode.com/problems/word-search/)
- [x] [Word Search II](https://leetcode.com/problems/word-search-ii/)
- [x] [Number of Islands](https://leetcode.com/problems/number-of-islands/)
- [x] [Surrounded Regions](https://leetcode.com/problems/surrounded-regions/)
- [x] [Max Area of Island](https://leetcode.com/problems/max-area-of-island/)
- [x] [01 Matrix](https://leetcode.com/problems/01-matrix/)
- [x] [Word Ladder](https://leetcode.com/problems/word-ladder/)### Union-Find
- [x] [Find if Path Exists in Graph - Union Find](https://leetcode.com/problems/find-if-path-exists-in-graph/)
- [x] [Number of Provinces](https://leetcode.com/problems/number-of-provinces/)
- [x] [Number of Operations to Make Network Connected](https://leetcode.com/problems/number-of-operations-to-make-network-connected/)### Topological Sort
- [x] [Course Schedule](https://leetcode.com/problems/course-schedule/)
- [x] [Course Schedule II](https://leetcode.com/problems/course-schedule-ii/)### Minimum Spanning Tree
- [x] [Min Cost to Connect All Points [Kruskal]](https://leetcode.com/problems/min-cost-to-connect-all-points/)
- [x] [Min Cost to Connect All Points [Prim]](https://leetcode.com/problems/min-cost-to-connect-all-points/)### Single-Source-Shortest Path
- [ ] [Network Delay Time [Djisktra]](https://leetcode.com/problems/network-delay-time/)
- [ ] [Network Delay Time [Bellman-ford]](https://leetcode.com/problems/network-delay-time/)### Dynamic Programming
#### 0/1 Knapsack
- [ ] [Target Sum](https://leetcode.com/problems/target-sum/)
- [ ] [Partition Equal Subset Sum](https://leetcode.com/problems/partition-equal-subset-sum/)
- [ ] [House Robber](https://leetcode.com/problems/house-robber/)#### Unbound Knapsack
- [ ] [Coin Change](https://leetcode.com/problems/coin-change/)
- [ ] [Coin Change II](https://leetcode.com/problems/coin-change-ii/)#### Fibonacci
- [ ] [Fibonacci Number](https://leetcode.com/problems/fibonacci-number/)
- [ ] [Min Cost Climbing Stairs](https://leetcode.com/problems/min-cost-climbing-stairs/)#### Longest Palindromic Subsequence (LPS)
- [ ] [Longest Palindromic Subsequence](https://leetcode.com/problems/longest-palindromic-subsequence/)
- [ ] [Palindromic Substrings](https://leetcode.com/problems/palindromic-substrings/)
- [ ] [Longest Palindromic Substring](https://leetcode.com/problems/longest-palindromic-substring/)#### Longest Common Subsequence (LCS)
- [ ] [Longest Common Subsequence](https://leetcode.com/problems/longest-common-subsequence/)
- [ ] [Shortest Common Supersequence](https://leetcode.com/problems/shortest-common-supersequence/)
- [ ] [Edit Distance](https://leetcode.com/problems/edit-distance/)
- [ ] [Longest Increasing Subsequence](https://leetcode.com/problems/longest-increasing-subsequence/)#### General
- [ ] [Unique Paths](https://leetcode.com/problems/unique-paths/)
- [ ] [Perfect Squares](https://leetcode.com/problems/perfect-squares/)
- [ ] [Triangle](https://leetcode.com/problems/triangle/)
- [ ] [Word Break](https://leetcode.com/problems/word-break/)
- [ ] [Word Break II](https://leetcode.com/problems/word-break-ii/)
- [ ] [Concatenated Words](https://leetcode.com/problems/concatenated-words/)
- [ ] [Longest Increasing Path in a Matrix](https://leetcode.com/problems/longest-increasing-path-in-a-matrix/)### Bitwise
- [ ] [Number of 1 Bits](https://leetcode.com/problems/number-of-1-bits/)
- [ ] [Hamming Distance](https://leetcode.com/problems/hamming-distance/)
- [ ] [Counting Bits](https://leetcode.com/problems/counting-bits/)
- [ ] [Total Hamming Distance](https://leetcode.com/problems/total-hamming-distance/)