Skip to content

This repository contains my solutions to various DSA problems.

Notifications You must be signed in to change notification settings

Nih1tGupta/Leetcode-GFG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeeksforGeeks || Leetcode

LeetCode Topics

Bit Manipulation

1940-maximum-xor-for-each-query
2323-minimum-bit-flips-to-convert-number
2356-largest-combination-with-bitwise-and-greater-than-zero
3291-find-if-array-can-be-sorted
3380-shortest-subarray-with-or-at-least-k-ii
3394-minimum-array-end

String

0014-longest-common-prefix
0812-rotate-string
1302-delete-characters-to-make-fancy-string
2232-adding-spaces-to-a-string
2580-circular-sentence
3018-make-string-a-subsequence-using-cyclic-increments
3174-minimum-number-of-changes-to-make-binary-string-beautiful
3451-string-compression-iii

Trie

0014-longest-common-prefix

Array

0605-can-place-flowers
0892-shortest-subarray-with-sum-at-least-k
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1755-defuse-the-bomb
1766-minimum-number-of-removals-to-make-mountain-array
1940-maximum-xor-for-each-query
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2232-adding-spaces-to-a-string
2356-largest-combination-with-bitwise-and-greater-than-zero
2552-maximum-sum-of-distinct-subarrays-with-length-k
2554-minimum-total-distance-traveled
2699-count-the-number-of-fair-pairs
2716-prime-subtraction-operation
2794-maximum-number-of-moves-in-a-grid
3291-find-if-array-can-be-sorted
3380-shortest-subarray-with-or-at-least-k-ii
3522-find-the-power-of-k-size-subarrays-i

Greedy

0605-can-place-flowers
1766-minimum-number-of-removals-to-make-mountain-array
2716-prime-subtraction-operation

Dynamic Programming

1766-minimum-number-of-removals-to-make-mountain-array
2554-minimum-total-distance-traveled
2794-maximum-number-of-moves-in-a-grid

Matrix

2794-maximum-number-of-moves-in-a-grid

Binary Search

0892-shortest-subarray-with-sum-at-least-k
1679-shortest-subarray-to-be-removed-to-make-array-sorted
1766-minimum-number-of-removals-to-make-mountain-array
2179-most-beautiful-item-for-each-query
2188-minimized-maximum-of-products-distributed-to-any-store
2699-count-the-number-of-fair-pairs
2716-prime-subtraction-operation

Sorting

2179-most-beautiful-item-for-each-query
2554-minimum-total-distance-traveled
2699-count-the-number-of-fair-pairs
3291-find-if-array-can-be-sorted

String Matching

0812-rotate-string

Hash Table

2356-largest-combination-with-bitwise-and-greater-than-zero
2552-maximum-sum-of-distinct-subarrays-with-length-k

Counting

2356-largest-combination-with-bitwise-and-greater-than-zero

Prefix Sum

0892-shortest-subarray-with-sum-at-least-k
1940-maximum-xor-for-each-query

Sliding Window

0892-shortest-subarray-with-sum-at-least-k
1755-defuse-the-bomb
2552-maximum-sum-of-distinct-subarrays-with-length-k
3380-shortest-subarray-with-or-at-least-k-ii
3522-find-the-power-of-k-size-subarrays-i

Math

2716-prime-subtraction-operation

Number Theory

2716-prime-subtraction-operation

Two Pointers

1679-shortest-subarray-to-be-removed-to-make-array-sorted
2232-adding-spaces-to-a-string
2699-count-the-number-of-fair-pairs
3018-make-string-a-subsequence-using-cyclic-increments

Stack

1679-shortest-subarray-to-be-removed-to-make-array-sorted

Monotonic Stack

1679-shortest-subarray-to-be-removed-to-make-array-sorted

Queue

0892-shortest-subarray-with-sum-at-least-k

Heap (Priority Queue)

0892-shortest-subarray-with-sum-at-least-k

Monotonic Queue

0892-shortest-subarray-with-sum-at-least-k

Simulation

2232-adding-spaces-to-a-string

About

This repository contains my solutions to various DSA problems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published