Skip to content

chetankronad06/Data-Structures-and-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data-Structures-and-Algorithms

A collection of LeetCode questions to ace the coding interview!

LeetCode Topics

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0070-climbing-stairs
0189-rotate-array
0204-count-primes
0231-power-of-two

Array

0001-two-sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0046-permutations
0049-group-anagrams
0075-sort-colors
0078-subsets
0084-largest-rectangle-in-histogram
0088-merge-sorted-array
0134-gas-station
0136-single-number
0189-rotate-array
0204-count-primes
0283-move-zeroes
0349-intersection-of-two-arrays
0496-next-greater-element-i
0503-next-greater-element-ii
0860-design-circular-queue
1878-check-if-array-is-sorted-and-rotated
2195-time-needed-to-buy-tickets

Two Pointers

0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0075-sort-colors
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0189-rotate-array
0283-move-zeroes
0349-intersection-of-two-arrays
0567-permutation-in-string
0908-middle-of-the-linked-list

Sorting

0049-group-anagrams
0075-sort-colors
0088-merge-sorted-array
0242-valid-anagram
0349-intersection-of-two-arrays

Bit Manipulation

0078-subsets
0136-single-number
0191-number-of-1-bits
0231-power-of-two
0338-counting-bits
1054-complement-of-base-10-integer

Hash Table

0001-two-sum
0017-letter-combinations-of-a-phone-number
0049-group-anagrams
0141-linked-list-cycle
0242-valid-anagram
0349-intersection-of-two-arrays
0387-first-unique-character-in-a-string
0496-next-greater-element-i
0567-permutation-in-string

Binary Search

0349-intersection-of-two-arrays

Divide and Conquer

0191-number-of-1-bits

Dynamic Programming

0070-climbing-stairs
0338-counting-bits

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0206-reverse-linked-list
0231-power-of-two

Enumeration

0204-count-primes

Number Theory

0204-count-primes

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0024-swap-nodes-in-pairs
0083-remove-duplicates-from-sorted-list
0141-linked-list-cycle
0206-reverse-linked-list
0860-design-circular-queue
0908-middle-of-the-linked-list

String

0017-letter-combinations-of-a-phone-number
0020-valid-parentheses
0049-group-anagrams
0125-valid-palindrome
0242-valid-anagram
0387-first-unique-character-in-a-string
0567-permutation-in-string
2021-remove-all-occurrences-of-a-substring

Stack

0020-valid-parentheses
0084-largest-rectangle-in-histogram
0094-binary-tree-inorder-traversal
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0155-min-stack
0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0496-next-greater-element-i
0503-next-greater-element-ii
2021-remove-all-occurrences-of-a-substring

Design

0155-min-stack
0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0860-design-circular-queue

Queue

0225-implement-stack-using-queues
0232-implement-queue-using-stacks
0387-first-unique-character-in-a-string
0860-design-circular-queue
2195-time-needed-to-buy-tickets

Simulation

2021-remove-all-occurrences-of-a-substring
2195-time-needed-to-buy-tickets

Sliding Window

0567-permutation-in-string

Monotonic Stack

0084-largest-rectangle-in-histogram
0496-next-greater-element-i
0503-next-greater-element-ii

Counting

0387-first-unique-character-in-a-string

Greedy

0134-gas-station

Memoization

0070-climbing-stairs

Backtracking

0017-letter-combinations-of-a-phone-number
0046-permutations
0078-subsets

Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0543-diameter-of-binary-tree
0572-subtree-of-another-tree

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0102-binary-tree-level-order-traversal

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

About

My LeetCode solutions in Java. Documenting my problem-solving journey.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages