Skip to content

Srijal-prasad/leetcode-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-practice

Welcome to my LeetCode practice repository! This repo contains my solutions to various coding problems from LeetCode.

Array

0075-sort-colors
0162-find-peak-element
0315-count-of-smaller-numbers-after-self
0330-patching-array
0502-ipo
0523-continuous-subarray-sum
0540-single-element-in-a-sorted-array
0648-replace-words
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1016-subarray-sums-divisible-by-k
1037-minimum-number-of-k-consecutive-bit-flips
1044-find-common-characters
1137-height-checker
1138-grumpy-bookstore-owner
1217-relative-sort-array
1370-count-number-of-nice-subarrays
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls
2148-minimum-number-of-moves-to-seat-everyone
2784-power-of-heroes
3421-count-pairs-that-form-a-complete-day-i

Binary Search

0162-find-peak-element
0315-count-of-smaller-numbers-after-self
0483-smallest-good-base
0540-single-element-in-a-sorted-array
0633-sum-of-square-numbers
0853-most-profit-assigning-work
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls

Two Pointers

0075-sort-colors
0633-sum-of-square-numbers
0853-most-profit-assigning-work
2572-append-characters-to-string-to-make-subsequence

String

0409-longest-palindrome
0648-replace-words
1044-find-common-characters
2572-append-characters-to-string-to-make-subsequence

Greedy

0330-patching-array
0409-longest-palindrome
0502-ipo
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1285-balance-a-binary-search-tree
2148-minimum-number-of-moves-to-seat-everyone
2379-maximum-total-importance-of-roads
2572-append-characters-to-string-to-make-subsequence

Math

0357-count-numbers-with-unique-digits
0483-smallest-good-base
0523-continuous-subarray-sum
0633-sum-of-square-numbers
1370-count-number-of-nice-subarrays
2784-power-of-heroes

Sorting

0075-sort-colors
0147-insertion-sort-list
0502-ipo
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array
1675-magnetic-force-between-two-balls
2148-minimum-number-of-moves-to-seat-everyone
2379-maximum-total-importance-of-roads
2784-power-of-heroes

Hash Table

0409-longest-palindrome
0523-continuous-subarray-sum
0648-replace-words
0876-hand-of-straights
1016-subarray-sums-divisible-by-k
1044-find-common-characters
1217-relative-sort-array
1370-count-number-of-nice-subarrays
3421-count-pairs-that-form-a-complete-day-i

Linked List

0147-insertion-sort-list

Trie

0648-replace-words

Prefix Sum

0523-continuous-subarray-sum
1016-subarray-sums-divisible-by-k
1037-minimum-number-of-k-consecutive-bit-flips
2784-power-of-heroes

Dynamic Programming

0357-count-numbers-with-unique-digits
2784-power-of-heroes

Counting Sort

0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array
3421-count-pairs-that-form-a-complete-day-i

Divide and Conquer

0315-count-of-smaller-numbers-after-self
1285-balance-a-binary-search-tree

Binary Indexed Tree

0315-count-of-smaller-numbers-after-self

Segment Tree

0315-count-of-smaller-numbers-after-self

Merge Sort

0315-count-of-smaller-numbers-after-self

Ordered Set

0315-count-of-smaller-numbers-after-self
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Backtracking

0357-count-numbers-with-unique-digits

Heap (Priority Queue)

0502-ipo
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
2379-maximum-total-importance-of-roads

Sliding Window

1037-minimum-number-of-k-consecutive-bit-flips
1138-grumpy-bookstore-owner
1370-count-number-of-nice-subarrays
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Queue

1037-minimum-number-of-k-consecutive-bit-flips
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Monotonic Queue

1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Bit Manipulation

1037-minimum-number-of-k-consecutive-bit-flips

Tree

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Depth-First Search

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Binary Search Tree

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Binary Tree

1114-binary-search-tree-to-greater-sum-tree
1285-balance-a-binary-search-tree

Graph

1916-find-center-of-star-graph
2379-maximum-total-importance-of-roads

About

Collection of LeetCode questions to ace the coding interview!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages