Skip to content

MahmoudEl3bady/leetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Solutions for Leet Code Problems

LeetCode Topics

Hash Table

0003-longest-substring-without-repeating-characters
0141-linked-list-cycle
0146-lru-cache
0952-word-subsets
1715-split-a-string-into-the-max-number-of-unique-substrings
2356-largest-combination-with-bitwise-and-greater-than-zero
2442-number-of-arithmetic-triplets
2586-longest-square-streak-in-an-array
2640-maximum-number-of-integers-to-choose-from-a-range-i
3446-find-the-number-of-good-pairs-i

String

0003-longest-substring-without-repeating-characters
0028-find-the-index-of-the-first-occurrence-in-a-string
0952-word-subsets
1197-parsing-a-boolean-expression
1302-delete-characters-to-make-fancy-string
1341-split-a-string-in-balanced-strings
1524-string-matching-in-an-array
1537-maximum-score-after-splitting-a-string
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
1667-find-kth-bit-in-nth-binary-string
1715-split-a-string-into-the-max-number-of-unique-substrings
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2292-counting-words-with-a-given-prefix
2691-count-vowel-strings-in-ranges
3309-count-prefix-and-suffix-pairs-i
3451-string-compression-iii

Sliding Window

0003-longest-substring-without-repeating-characters

Array

0026-remove-duplicates-from-sorted-array
0039-combination-sum
0074-search-a-2d-matrix
0287-find-the-duplicate-number
0952-word-subsets
1524-string-matching-in-an-array
1570-final-prices-with-a-special-discount-in-a-shop
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2292-counting-words-with-a-given-prefix
2356-largest-combination-with-bitwise-and-greater-than-zero
2358-number-of-ways-to-split-array
2442-number-of-arithmetic-triplets
2586-longest-square-streak-in-an-array
2624-difference-between-element-sum-and-digit-sum-of-an-array
2640-maximum-number-of-integers-to-choose-from-a-range-i
2691-count-vowel-strings-in-ranges
2699-count-the-number-of-fair-pairs
3291-find-if-array-can-be-sorted
3309-count-prefix-and-suffix-pairs-i
3331-minimum-operations-to-exceed-threshold-value-i
3446-find-the-number-of-good-pairs-i

Two Pointers

0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0028-find-the-index-of-the-first-occurrence-in-a-string
0141-linked-list-cycle
0287-find-the-duplicate-number
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2236-maximum-twin-sum-of-a-linked-list
2442-number-of-arithmetic-triplets
2699-count-the-number-of-fair-pairs

Enumeration

2442-number-of-arithmetic-triplets

Binary Search

0074-search-a-2d-matrix
0287-find-the-duplicate-number
2586-longest-square-streak-in-an-array
2640-maximum-number-of-integers-to-choose-from-a-range-i
2699-count-the-number-of-fair-pairs

Matrix

0074-search-a-2d-matrix

Recursion

1197-parsing-a-boolean-expression
1667-find-kth-bit-in-nth-binary-string

Simulation

1667-find-kth-bit-in-nth-binary-string

Stack

1197-parsing-a-boolean-expression
1570-final-prices-with-a-special-discount-in-a-shop
2236-maximum-twin-sum-of-a-linked-list

Backtracking

0039-combination-sum
0113-path-sum-ii
1715-split-a-string-into-the-max-number-of-unique-substrings

Linked List

0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0146-lru-cache
2236-maximum-twin-sum-of-a-linked-list

Bit Manipulation

0287-find-the-duplicate-number
2356-largest-combination-with-bitwise-and-greater-than-zero
3291-find-if-array-can-be-sorted

Dynamic Programming

1474-longest-zigzag-path-in-a-binary-tree
2586-longest-square-streak-in-an-array

Sorting

2586-longest-square-streak-in-an-array
2640-maximum-number-of-integers-to-choose-from-a-range-i
2699-count-the-number-of-fair-pairs
3291-find-if-array-can-be-sorted

Design

0146-lru-cache

Doubly-Linked List

0146-lru-cache

Counting

1341-split-a-string-in-balanced-strings
2356-largest-combination-with-bitwise-and-greater-than-zero

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string
1524-string-matching-in-an-array
1566-check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence
2292-counting-words-with-a-given-prefix
3309-count-prefix-and-suffix-pairs-i

Tree

0112-path-sum
0113-path-sum-ii
0437-path-sum-iii
0450-delete-node-in-a-bst
0515-find-largest-value-in-each-tree-row
0904-leaf-similar-trees
1474-longest-zigzag-path-in-a-binary-tree
1544-count-good-nodes-in-binary-tree

Depth-First Search

0112-path-sum
0113-path-sum-ii
0437-path-sum-iii
0515-find-largest-value-in-each-tree-row
0904-leaf-similar-trees
1474-longest-zigzag-path-in-a-binary-tree
1544-count-good-nodes-in-binary-tree

Binary Tree

0112-path-sum
0113-path-sum-ii
0437-path-sum-iii
0450-delete-node-in-a-bst
0515-find-largest-value-in-each-tree-row
0904-leaf-similar-trees
1474-longest-zigzag-path-in-a-binary-tree
1544-count-good-nodes-in-binary-tree

Breadth-First Search

0112-path-sum
0515-find-largest-value-in-each-tree-row
1544-count-good-nodes-in-binary-tree

Greedy

1341-split-a-string-in-balanced-strings
2640-maximum-number-of-integers-to-choose-from-a-range-i

Monotonic Stack

1570-final-prices-with-a-special-discount-in-a-shop

Binary Search Tree

0450-delete-node-in-a-bst

Math

2624-difference-between-element-sum-and-digit-sum-of-an-array

Prefix Sum

1537-maximum-score-after-splitting-a-string
1895-minimum-number-of-operations-to-move-all-balls-to-each-box
2358-number-of-ways-to-split-array
2691-count-vowel-strings-in-ranges

Trie

3309-count-prefix-and-suffix-pairs-i

Rolling Hash

3309-count-prefix-and-suffix-pairs-i

Hash Function

3309-count-prefix-and-suffix-pairs-i