Skip to content

Chakradhar6304/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

Welcome to my LeetCode solutions repository! 🎉
This repo contains a collection of my solutions to various LeetCode problems, organized by categories like Data Structures and Algorithms.

🚀 Problem Solving Topics

The problems covered include a wide variety of topics:

  • Arrays
  • Strings
  • Linked Lists
  • Trees
  • Graphs
  • Dynamic Programming
  • Recursion
  • Sorting & Searching
  • Bit Manipulation
  • ... and much more! 🚀

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0011-container-with-most-water
0027-remove-element
0035-search-insert-position
0036-valid-sudoku
0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0134-gas-station
0135-candy
0150-evaluate-reverse-polish-notation
0169-majority-element
0189-rotate-array
0209-minimum-size-subarray-sum
0238-product-of-array-except-self
0260-single-number-iii
0274-h-index
0283-move-zeroes
0506-relative-ranks
0605-can-place-flowers
0643-maximum-average-subarray-i
0917-boats-to-save-people
1319-unique-number-of-occurrences
1326-sum-of-floored-pairs
1528-kids-with-the-greatest-number-of-candies
1833-find-the-highest-altitude
1972-rotating-the-box
1984-maximum-distance-between-a-pair-of-values
1985-maximum-subarray-min-product
1993-sum-of-all-subset-xor-totals
1995-finding-pairs-with-a-certain-sum

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0030-substring-with-concatenation-of-all-words
0036-valid-sudoku
0169-majority-element
0290-word-pattern
0383-ransom-note
1319-unique-number-of-occurrences
1986-largest-color-value-in-a-directed-graph
1995-finding-pairs-with-a-certain-sum

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0023-merge-k-sorted-lists
0237-delete-node-in-a-linked-list

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0150-evaluate-reverse-polish-notation
0189-rotate-array
1146-greatest-common-divisor-of-strings
1326-sum-of-floored-pairs
1971-incremental-memory-leak
1993-sum-of-all-subset-xor-totals
1996-number-of-ways-to-rearrange-sticks-with-k-sticks-visible

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0006-zigzag-conversion
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0022-generate-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0030-substring-with-concatenation-of-all-words
0058-length-of-last-word
0071-simplify-path
0151-reverse-words-in-a-string
0165-compare-version-numbers
0211-design-add-and-search-words-data-structure
0290-word-pattern
0344-reverse-string
0345-reverse-vowels-of-a-string
0383-ransom-note
0392-is-subsequence
0514-freedom-trail
1146-greatest-common-divisor-of-strings
1894-merge-strings-alternately
1970-sorting-the-sentence
1994-minimum-number-of-swaps-to-make-the-binary-string-alternating

Sliding Window

0003-longest-substring-without-repeating-characters
0030-substring-with-concatenation-of-all-words
0209-minimum-size-subarray-sum
0643-maximum-average-subarray-i

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0151-reverse-words-in-a-string
0165-compare-version-numbers
0189-rotate-array
0283-move-zeroes
0344-reverse-string
0345-reverse-vowels-of-a-string
0392-is-subsequence
0917-boats-to-save-people
1894-merge-strings-alternately
1972-rotating-the-box
1984-maximum-distance-between-a-pair-of-values

Dynamic Programming

0005-longest-palindromic-substring
0022-generate-parentheses
0045-jump-game-ii
0055-jump-game
0121-best-time-to-buy-and-sell-stock
0392-is-subsequence
0514-freedom-trail
0863-sum-of-distances-in-tree
1986-largest-color-value-in-a-directed-graph
1996-number-of-ways-to-rearrange-sticks-with-k-sticks-visible

Trie

0014-longest-common-prefix
0211-design-add-and-search-words-data-structure

Stack

0020-valid-parentheses
0071-simplify-path
0150-evaluate-reverse-polish-notation
1985-maximum-subarray-min-product

Binary Search

0004-median-of-two-sorted-arrays
0035-search-insert-position
0209-minimum-size-subarray-sum
0374-guess-number-higher-or-lower
1326-sum-of-floored-pairs
1984-maximum-distance-between-a-pair-of-values

Bit Manipulation

0260-single-number-iii
1993-sum-of-all-subset-xor-totals

Sorting

0169-majority-element
0274-h-index
0506-relative-ranks
0917-boats-to-save-people
1970-sorting-the-sentence

Heap (Priority Queue)

0023-merge-k-sorted-lists
0506-relative-ranks

Depth-First Search

0211-design-add-and-search-words-data-structure
0514-freedom-trail
0863-sum-of-distances-in-tree

Breadth-First Search

0514-freedom-trail

Tree

0863-sum-of-distances-in-tree

Graph

0863-sum-of-distances-in-tree
1986-largest-color-value-in-a-directed-graph

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0134-gas-station
0135-candy
0605-can-place-flowers
0917-boats-to-save-people
1994-minimum-number-of-swaps-to-make-the-binary-string-alternating

Prefix Sum

0209-minimum-size-subarray-sum
0238-product-of-array-except-self
1326-sum-of-floored-pairs
1833-find-the-highest-altitude
1985-maximum-subarray-min-product

Design

0211-design-add-and-search-words-data-structure
0969-number-of-recent-calls
1995-finding-pairs-with-a-certain-sum

Queue

0969-number-of-recent-calls

Data Stream

0969-number-of-recent-calls

Interactive

0374-guess-number-higher-or-lower

Divide and Conquer

0004-median-of-two-sorted-arrays
0023-merge-k-sorted-lists
0169-majority-element

Counting

0169-majority-element
0383-ransom-note
1986-largest-color-value-in-a-directed-graph

Matrix

0036-valid-sudoku
1972-rotating-the-box

Counting Sort

0274-h-index

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Backtracking

0022-generate-parentheses
1993-sum-of-all-subset-xor-totals

Merge Sort

0023-merge-k-sorted-lists

Monotonic Stack

1985-maximum-subarray-min-product

Topological Sort

1986-largest-color-value-in-a-directed-graph

Memoization

1986-largest-color-value-in-a-directed-graph

Simulation

1971-incremental-memory-leak

Combinatorics

1993-sum-of-all-subset-xor-totals
1996-number-of-ways-to-rearrange-sticks-with-k-sticks-visible

Enumeration

1993-sum-of-all-subset-xor-totals

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages