Skip to content

Shrutikabansal/DataStructureandAlgoritms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataStructureandAlgoritms

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0033-search-in-rotated-sorted-array
0045-jump-game-ii
0048-rotate-image
0053-maximum-subarray
0054-spiral-matrix
0055-jump-game
0057-insert-interval
0063-unique-paths-ii
0073-set-matrix-zeroes
0079-word-search
0121-best-time-to-buy-and-sell-stock
0128-longest-consecutive-sequence
0152-maximum-product-subarray
0153-find-minimum-in-rotated-sorted-array
0198-house-robber
0200-number-of-islands
0213-house-robber-ii
0217-contains-duplicate
0238-product-of-array-except-self
0300-longest-increasing-subsequence
0329-longest-increasing-path-in-a-matrix
0347-top-k-frequent-elements
0377-combination-sum-iv
0416-partition-equal-subset-sum
0542-01-matrix
0721-accounts-merge
1073-number-of-enclaves
1752-arithmetic-subarrays

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0073-set-matrix-zeroes
0128-longest-consecutive-sequence
0141-linked-list-cycle
0146-lru-cache
0208-implement-trie-prefix-tree
0217-contains-duplicate
0242-valid-anagram
0347-top-k-frequent-elements
0424-longest-repeating-character-replacement
0721-accounts-merge
1752-arithmetic-subarrays

Dynamic Programming

0005-longest-palindromic-substring
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0062-unique-paths
0063-unique-paths-ii
0070-climbing-stairs
0091-decode-ways
0121-best-time-to-buy-and-sell-stock
0124-binary-tree-maximum-path-sum
0152-maximum-product-subarray
0198-house-robber
0213-house-robber-ii
0300-longest-increasing-subsequence
0329-longest-increasing-path-in-a-matrix
0377-combination-sum-iv
0416-partition-equal-subset-sum
0542-01-matrix
0647-palindromic-substrings
0803-cheapest-flights-within-k-stops
1250-longest-common-subsequence

Sorting

0217-contains-duplicate
0242-valid-anagram
0295-find-median-from-data-stream
0347-top-k-frequent-elements
0721-accounts-merge
1752-arithmetic-subarrays

Prefix Sum

0238-product-of-array-except-self

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0295-find-median-from-data-stream
0647-palindromic-substrings

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game

Binary Search

0033-search-in-rotated-sorted-array
0153-find-minimum-in-rotated-sorted-array
0300-longest-increasing-subsequence

Math

0002-add-two-numbers
0048-rotate-image
0062-unique-paths
0070-climbing-stairs

Memoization

0070-climbing-stairs
0329-longest-increasing-path-in-a-matrix

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0020-valid-parentheses
0079-word-search
0091-decode-ways
0208-implement-trie-prefix-tree
0211-design-add-and-search-words-data-structure
0242-valid-anagram
0297-serialize-and-deserialize-binary-tree
0424-longest-repeating-character-replacement
0647-palindromic-substrings
0721-accounts-merge
1250-longest-common-subsequence

Combinatorics

0062-unique-paths

Matrix

0048-rotate-image
0054-spiral-matrix
0063-unique-paths-ii
0073-set-matrix-zeroes
0079-word-search
0200-number-of-islands
0329-longest-increasing-path-in-a-matrix
0542-01-matrix
1073-number-of-enclaves

Simulation

0054-spiral-matrix

Backtracking

0079-word-search

Depth-First Search

0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0200-number-of-islands
0207-course-schedule
0211-design-add-and-search-words-data-structure
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
0310-minimum-height-trees
0329-longest-increasing-path-in-a-matrix
0572-subtree-of-another-tree
0721-accounts-merge
0803-cheapest-flights-within-k-stops
1073-number-of-enclaves
1544-count-good-nodes-in-binary-tree

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0207-course-schedule
0226-invert-binary-tree
0297-serialize-and-deserialize-binary-tree
0310-minimum-height-trees
0329-longest-increasing-path-in-a-matrix
0542-01-matrix
0721-accounts-merge
0803-cheapest-flights-within-k-stops
1073-number-of-enclaves
1544-count-good-nodes-in-binary-tree

Union Find

0128-longest-consecutive-sequence
0200-number-of-islands
0721-accounts-merge
1073-number-of-enclaves

Divide and Conquer

0053-maximum-subarray
0347-top-k-frequent-elements

Heap (Priority Queue)

0295-find-median-from-data-stream
0347-top-k-frequent-elements
0803-cheapest-flights-within-k-stops

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Design

0146-lru-cache
0208-implement-trie-prefix-tree
0211-design-add-and-search-words-data-structure
0295-find-median-from-data-stream
0297-serialize-and-deserialize-binary-tree

Data Stream

0295-find-median-from-data-stream

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0146-lru-cache
0206-reverse-linked-list

Recursion

0002-add-two-numbers
0206-reverse-linked-list

Stack

0020-valid-parentheses

Sliding Window

0003-longest-substring-without-repeating-characters
0424-longest-repeating-character-replacement

Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
0572-subtree-of-another-tree
1544-count-good-nodes-in-binary-tree

Binary Tree

0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0124-binary-tree-maximum-path-sum
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0297-serialize-and-deserialize-binary-tree
0572-subtree-of-another-tree
1544-count-good-nodes-in-binary-tree

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree

Doubly-Linked List

0146-lru-cache

Graph

0207-course-schedule
0310-minimum-height-trees
0329-longest-increasing-path-in-a-matrix
0803-cheapest-flights-within-k-stops

Topological Sort

0207-course-schedule
0310-minimum-height-trees
0329-longest-increasing-path-in-a-matrix

Shortest Path

0803-cheapest-flights-within-k-stops

Trie

0208-implement-trie-prefix-tree
0211-design-add-and-search-words-data-structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published