List of Programs related to data structures and algorithms
-
Stack using array: JavaScript
-
Stack using linkedlist: JavaScript
- Queue using array: JavaScript
- Queue using linkedlist: JavaScript
- Queue using stack: JavaScript
- Linkedlist implementation: JavaScript
- DoublyLinkedlist implementation: JavaScript
- Binary Search Tree: JavaScript
- Unweighted undirected graph: JavaScript
- HashTable: JavaScript
-
Contains duplicates : Source Playground Documentation
-
Two sum2- Input array sorted: Source Playground Documentation
-
3 sum: Source Playground Documentation
-
Product of array except self: Source Playground Documentation
-
Max sum subarray: Source Playground Documentation
-
Minimum size subarray sum: Source Playground Documentation
-
Sort Colors: Source Playground Documentation
-
Maximum product subarray: Source Playground Documentation
-
Find minimum in rotated sorted array: Source Playground Documentation
-
Maximum Circular subarray: Source Playground Documentation
-
Rotate array: Source Playground Documentation
-
Search in rotated sorted array: Source Playground Documentation
-
Container with most water: Source Playground Documentation
-
First missing positive number: Source JavaScript Documentation
-
Best time to buy stock and sell stock: Source JavaScript Documentation
-
Two missing numbers: Source JavaScript Documentation
No. | Name | Source | Live | Documentation | Level | Pattern |
---|---|---|---|---|---|---|
1 | Longest substring without repeating characters | Source | JavaScript | Documentation | Medium | Sliding Window |
2 | Longest repeating character replacement | Source | JavaScript | Documentation | Medium | Sliding Window |
3 | Minimum window substring | Source | JavaScript | Documentation | Hard | Sliding Window |
4 | Valid anagram | Source | JavaScript | Documentation | Easy | Frequency counting |
5 | Group anagrams | Source | JavaScript | Documentation | Medium | Frequency counting |
6 | Valid palindrome | Source | JavaScript | Documentation | Easy | Two pointer |
7 | Longest palindromic substring | Source | JavaScript | Documentation | Medium | Expanding around center |
8 | Palindromic substrings | Source | JavaScript | Documentation | Medium | Expanding around center |
9 | Encode and decode strings | Source | JavaScript | Documentation | Medium | Basic string and array operations |
10 | Greatest common devisor of strings | Source | JavaScript | Documentation | Easy | Euclidean and String operations |
11 | Reverse words in string | Source | JavaScript | Documentation | Medium | Basic string and array operations |
-
Climbing stairs: JavaScript
-
Coin change: JavaScript
-
Longest increasing subsequence: JavaScript
-
Longest common subsequence: JavaScript
-
Word break problem: JavaScript
-
Combination Sum 4: JavaScript
-
House robber: JavaScript
-
House robber 2: JavaScript
-
Decode ways: JavaScript
-
Unique paths: JavaScript
-
Jump game: JavaScript
-
Sum of two integers: JavaScript
-
Number of 1 Bits: JavaScript
-
Counting Bits: JavaScript
-
Missing number: JavaScript
-
Reverse Bits: JavaScript
- Sort Stack: JavaScript
- Balanced Brackets: JavaScript
-
Daily Temperatures: JavaScript Documentation
-
Number of People See In Queue: JavaScript Documentation
-
Reverse substring: JavaScript
-
Detect cycle in a linkedlist: JavaScript
-
Merge two sorted lists: JavaScript
-
Merge K sorted lists: JavaScript
-
Remove Nth node from end of list: JavaScript
-
Reorder list: JavaScript
-
Find middle node: JavaScript
-
Find Kth node from end of list: JavaScript
-
Partition list: JavaScript
-
Remove duplicates: JavaScript
-
Binary to decimal: JavaScript
-
Swap first and last: JavaScript
-
Palindrome check: JavaScript
-
Swap node pairs: JavaScript
-
Maximum depth of binary tree: JavaScript
-
Same tree: JavaScript
-
Invert or Flip binary tree: JavaScript
-
Binary tree maximum path sum: JavaScript
-
Binary tree level order traversal: JavaScript
-
Serialize and deserialize binary tree: JavaScript
-
Subtree of another tree: JavaScript
-
Construct binary tree from preorder and inorder traversal: JavaScript
-
Validate BST: JavaScript
-
Kth smalleest element in BST: JavaScript
-
Lowest Common Ancestor of BST: JavaScript
-
Trie: JavaScript
-
Design and Search words Datastructure: JavaScript
-
Word search 2: JavaScript
-
Clone graph: JavaScript
-
Course schedule: JavaScript
-
Pacific Atlantic waterflow: JavaScript
-
Number of Islands: JavaScript
-
Longest consequtive sequence: JavaScript
-
Alien dictionary: JavaScript
-
Graph valid tree: JavaScript
-
Number of connected components in an undirected graph: JavaScript
-
Set matrix zeros: JavaScript
-
Spiral matrix: JavaScript
-
Rotate image: JavaScript
-
Word search: JavaScript
-
Insert interval: Source Playground Documentation
-
Merge interval: Source Playground Documentation
-
Non-overlapping intervals: Source Playground Documentation
-
Meeting rooms: Source Playground Documentation
-
Meeting rooms 2: Source Playground Documentation
-
Duplicates: JavaScript
-
Two sum: JavaScript Documentation
-
First non repeating character: JavaScript
-
Group anagram: JavaScript
-
Verify Common Elements: JavaScript
-
Bubble sort: Source Playground Documentation
-
Selection sort: Source Playground Documentation
-
Insertion sort: Source Playground Documentation
-
Merge sort: Source Playground Documentation
-
Quick sort: Source Playground Documentation
-
Heap sort: Source Playground Documentation