Skip to content

Consistent LeetCode problem solving focused on correctness, optimization, and clean implementation.

Notifications You must be signed in to change notification settings

Harshv2608/Leetcode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

183 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

This repository contains my structured solutions to LeetCode problems. I use this space to strengthen my understanding of Data Structures and Algorithms, improve problem-solving skills, and write optimized, clean implementations.

My focus is on correctness, efficiency, and maintaining clear logic rather than just reaching the final answer.

LeetCode Topics

Array

0001-two-sum
0004-median-of-two-sorted-arrays
0066-plus-one
0283-move-zeroes
0485-max-consecutive-ones
0643-maximum-average-subarray-i
0961-n-repeated-element-in-size-2n-array
1351-count-negative-numbers-in-a-sorted-matrix
1365-how-many-numbers-are-smaller-than-the-current-number
1637-widest-vertical-area-between-two-points-containing-no-points
1769-minimum-number-of-operations-to-move-all-balls-to-each-box
2011-final-value-of-variable-after-performing-operations
2401-longest-nice-subarray
2932-maximum-strong-pair-xor-i
2942-find-words-containing-character
3264-final-array-state-after-k-multiplication-operations-i
3467-transform-array-by-parity

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0961-n-repeated-element-in-size-2n-array
1365-how-many-numbers-are-smaller-than-the-current-number
2932-maximum-strong-pair-xor-i
3760-maximum-substrings-with-distinct-start

Binary Search

0004-median-of-two-sorted-arrays
1351-count-negative-numbers-in-a-sorted-matrix

Divide and Conquer

0004-median-of-two-sorted-arrays

Math

0009-palindrome-number
0066-plus-one
0258-add-digits
0326-power-of-three
1281-subtract-the-product-and-sum-of-digits-of-an-integer
1342-number-of-steps-to-reduce-a-number-to-zero
1523-count-odd-numbers-in-an-interval-range
1688-count-of-matches-in-tournament
1925-count-square-sum-triples
2160-minimum-sum-of-four-digit-number-after-splitting-digits
2235-add-two-integers
2396-strictly-palindromic-number
2520-count-the-digits-that-divide-a-number
3264-final-array-state-after-k-multiplication-operations-i

Matrix

1351-count-negative-numbers-in-a-sorted-matrix

Sorting

1365-how-many-numbers-are-smaller-than-the-current-number
1637-widest-vertical-area-between-two-points-containing-no-points
2160-minimum-sum-of-four-digit-number-after-splitting-digits
3467-transform-array-by-parity

Counting Sort

1365-how-many-numbers-are-smaller-than-the-current-number
3467-transform-array-by-parity

String

0003-longest-substring-without-repeating-characters
0125-valid-palindrome
0151-reverse-words-in-a-string
0344-reverse-string
0557-reverse-words-in-a-string-iii
0680-valid-palindrome-ii
0709-to-lower-case
1047-remove-all-adjacent-duplicates-in-string
1108-defanging-an-ip-address
1769-minimum-number-of-operations-to-move-all-balls-to-each-box
2011-final-value-of-variable-after-performing-operations
2942-find-words-containing-character
3110-score-of-a-string
3760-maximum-substrings-with-distinct-start

Stack

1047-remove-all-adjacent-duplicates-in-string

Two Pointers

0125-valid-palindrome
0151-reverse-words-in-a-string
0283-move-zeroes
0344-reverse-string
0557-reverse-words-in-a-string-iii
0680-valid-palindrome-ii
2396-strictly-palindromic-number

Greedy

0680-valid-palindrome-ii
2160-minimum-sum-of-four-digit-number-after-splitting-digits

Enumeration

1925-count-square-sum-triples

Bit Manipulation

0693-binary-number-with-alternating-bits
1342-number-of-steps-to-reduce-a-number-to-zero
2401-longest-nice-subarray
2932-maximum-strong-pair-xor-i

Heap (Priority Queue)

3264-final-array-state-after-k-multiplication-operations-i

Simulation

0258-add-digits
1688-count-of-matches-in-tournament
2011-final-value-of-variable-after-performing-operations
3264-final-array-state-after-k-multiplication-operations-i

Brainteaser

2396-strictly-palindromic-number

Prefix Sum

1769-minimum-number-of-operations-to-move-all-balls-to-each-box

Recursion

0326-power-of-three

Number Theory

0258-add-digits

Trie

2932-maximum-strong-pair-xor-i

Sliding Window

0003-longest-substring-without-repeating-characters
0643-maximum-average-subarray-i
2401-longest-nice-subarray
2932-maximum-strong-pair-xor-i