Skip to content

Omar-Fetooh/leetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

523 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

This repository contains my solutions to LeetCode problems.

Created with ❤️ by LeetPush

Made by

Happy coding! 🚀

LeetCode Topics

String

0020-valid-parentheses
0049-group-anagrams
0127-word-ladder
0344-reverse-string
0394-decode-string
0567-permutation-in-string
0678-valid-parenthesis-string
1894-merge-strings-alternately

Dynamic Programming

0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0338-counting-bits
0435-non-overlapping-intervals
0542-01-matrix
0678-valid-parenthesis-string
0787-cheapest-flights-within-k-stops
1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal
0143-reorder-list
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0150-evaluate-reverse-polish-notation
0394-decode-string
0678-valid-parenthesis-string
0883-car-fleet
0937-online-stock-span

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0435-non-overlapping-intervals
0621-task-scheduler
0678-valid-parenthesis-string
0917-boats-to-save-people

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0027-remove-element
0031-next-permutation
0033-search-in-rotated-sorted-array
0039-combination-sum
0040-combination-sum-ii
0045-jump-game-ii
0046-permutations
0048-rotate-image
0049-group-anagrams
0053-maximum-subarray
0055-jump-game
0056-merge-intervals
0057-insert-interval
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0078-subsets
0088-merge-sorted-array
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0118-pascals-triangle
0121-best-time-to-buy-and-sell-stock
0130-surrounded-regions
0150-evaluate-reverse-polish-notation
0153-find-minimum-in-rotated-sorted-array
0217-contains-duplicate
0219-contains-duplicate-ii
0238-product-of-array-except-self
0287-find-the-duplicate-number
0347-top-k-frequent-elements
0435-non-overlapping-intervals
0542-01-matrix
0621-task-scheduler
0733-flood-fill
0883-car-fleet
0917-boats-to-save-people
0961-n-repeated-element-in-size-2n-array
0973-k-closest-points-to-origin
0994-rotting-oranges
1020-number-of-enclaves
1046-last-stone-weight
1091-shortest-path-in-binary-matrix
1631-path-with-minimum-effort

Hash Table

0001-two-sum
0049-group-anagrams
0073-set-matrix-zeroes
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0127-word-ladder
0138-copy-list-with-random-pointer
0217-contains-duplicate
0219-contains-duplicate-ii
0347-top-k-frequent-elements
0567-permutation-in-string
0621-task-scheduler
0961-n-repeated-element-in-size-2n-array

Sorting

0015-3sum
0049-group-anagrams
0056-merge-intervals
0088-merge-sorted-array
0217-contains-duplicate
0347-top-k-frequent-elements
0435-non-overlapping-intervals
0621-task-scheduler
0883-car-fleet
0917-boats-to-save-people
0973-k-closest-points-to-origin

Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0701-insert-into-a-binary-search-tree
0703-kth-largest-element-in-a-stream
1448-count-good-nodes-in-binary-tree

Depth-First Search

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0130-surrounded-regions
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0199-binary-tree-right-side-view
0207-course-schedule
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0547-number-of-provinces
0572-subtree-of-another-tree
0733-flood-fill
0743-network-delay-time
0785-is-graph-bipartite
0787-cheapest-flights-within-k-stops
1020-number-of-enclaves
1448-count-good-nodes-in-binary-tree
1631-path-with-minimum-effort

Binary Tree

0094-binary-tree-inorder-traversal
0098-validate-binary-search-tree
0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0110-balanced-binary-tree
0144-binary-tree-preorder-traversal
0145-binary-tree-postorder-traversal
0199-binary-tree-right-side-view
0226-invert-binary-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0701-insert-into-a-binary-search-tree
0703-kth-largest-element-in-a-stream
1448-count-good-nodes-in-binary-tree

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0127-word-ladder
0130-surrounded-regions
0199-binary-tree-right-side-view
0207-course-schedule
0226-invert-binary-tree
0542-01-matrix
0547-number-of-provinces
0733-flood-fill
0743-network-delay-time
0785-is-graph-bipartite
0787-cheapest-flights-within-k-stops
0994-rotting-oranges
1020-number-of-enclaves
1091-shortest-path-in-binary-matrix
1448-count-good-nodes-in-binary-tree
1631-path-with-minimum-effort

Divide and Conquer

0053-maximum-subarray
0105-construct-binary-tree-from-preorder-and-inorder-traversal
0191-number-of-1-bits
0347-top-k-frequent-elements
0973-k-closest-points-to-origin

Heap (Priority Queue)

0347-top-k-frequent-elements
0621-task-scheduler
0703-kth-largest-element-in-a-stream
0743-network-delay-time
0787-cheapest-flights-within-k-stops
0973-k-closest-points-to-origin
1046-last-stone-weight
1631-path-with-minimum-effort

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements
0621-task-scheduler

Quickselect

0347-top-k-frequent-elements
0973-k-closest-points-to-origin

Two Pointers

0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
0027-remove-element
0031-next-permutation
0088-merge-sorted-array
0143-reorder-list
0287-find-the-duplicate-number
0344-reverse-string
0567-permutation-in-string
0917-boats-to-save-people
1894-merge-strings-alternately

Prefix Sum

0238-product-of-array-except-self

Sliding Window

0219-contains-duplicate-ii
0567-permutation-in-string

Math

0002-add-two-numbers
0009-palindrome-number
0048-rotate-image
0069-sqrtx
0150-evaluate-reverse-polish-notation
0371-sum-of-two-integers
0973-k-closest-points-to-origin

Design

0703-kth-largest-element-in-a-stream
0937-online-stock-span

Monotonic Stack

0883-car-fleet
0937-online-stock-span

Data Stream

0703-kth-largest-element-in-a-stream
0937-online-stock-span

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0143-reorder-list
0206-reverse-linked-list
0394-decode-string

Binary Search

0033-search-in-rotated-sorted-array
0069-sqrtx
0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0287-find-the-duplicate-number
0374-guess-number-higher-or-lower
1631-path-with-minimum-effort

Interactive

0374-guess-number-higher-or-lower

Matrix

0048-rotate-image
0073-set-matrix-zeroes
0074-search-a-2d-matrix
0130-surrounded-regions
0542-01-matrix
0733-flood-fill
0994-rotting-oranges
1020-number-of-enclaves
1091-shortest-path-in-binary-matrix
1631-path-with-minimum-effort

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0092-reverse-linked-list-ii
0138-copy-list-with-random-pointer
0143-reorder-list
0206-reverse-linked-list

Bit Manipulation

0078-subsets
0191-number-of-1-bits
0287-find-the-duplicate-number
0338-counting-bits
0371-sum-of-two-integers

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Binary Search Tree

0098-validate-binary-search-tree
0230-kth-smallest-element-in-a-bst
0235-lowest-common-ancestor-of-a-binary-search-tree
0701-insert-into-a-binary-search-tree
0703-kth-largest-element-in-a-stream

Geometry

0973-k-closest-points-to-origin

Backtracking

0039-combination-sum
0040-combination-sum-ii
0046-permutations
0078-subsets

Union Find

0547-number-of-provinces

Graph

0547-number-of-provinces

Union-Find

0130-surrounded-regions
0785-is-graph-bipartite
1020-number-of-enclaves
1631-path-with-minimum-effort

Graph Theory

0207-course-schedule
0743-network-delay-time
0785-is-graph-bipartite
0787-cheapest-flights-within-k-stops
1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance

Topological Sort

0207-course-schedule

Shortest Path

0743-network-delay-time
0787-cheapest-flights-within-k-stops
1334-find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance

About

This repository Contains my leetcode & GeekForGeeks solutions hope to help someone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages