ELEF-TQ / LeetCode_Master

Compilation of solutions for various LeetCode problems

Home Page:https://leetcode.com/u/TARIQ_AIT_LAKHLIFT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LeetCode_Master

Collection of LeetCode questions to ace the coding interview! - Created using LeetHub v2

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0018-4sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0036-valid-sudoku
0041-first-missing-positive
0045-jump-game-ii
0048-rotate-image
0049-group-anagrams
0053-maximum-subarray
0055-jump-game
0066-plus-one
0080-remove-duplicates-from-sorted-array-ii
0088-merge-sorted-array
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0128-longest-consecutive-sequence
0134-gas-station
0136-single-number
0149-max-points-on-a-line
0167-two-sum-ii-input-array-is-sorted
0169-majority-element
0189-rotate-array
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0283-move-zeroes
0605-can-place-flowers
0643-maximum-average-subarray-i
0954-maximum-sum-circular-subarray
1528-kids-with-the-greatest-number-of-candies
1603-running-sum-of-1d-array
1791-richest-customer-wealth
1798-max-number-of-k-sum-pairs
2148-minimum-number-of-moves-to-seat-everyone
2254-check-if-every-row-and-column-contains-all-numbers
3151-minimum-processing-time

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0016-3sum-closest
0018-4sum
0019-remove-nth-node-from-end-of-list
0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string
0080-remove-duplicates-from-sorted-array-ii
0082-remove-duplicates-from-sorted-list-ii
0088-merge-sorted-array
0125-valid-palindrome
0141-linked-list-cycle
0151-reverse-words-in-a-string
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0202-happy-number
0234-palindrome-linked-list
0283-move-zeroes
0344-reverse-string
0392-is-subsequence
0908-middle-of-the-linked-list
1798-max-number-of-k-sum-pairs
1894-merge-strings-alternately

Sorting

0015-3sum
0016-3sum-closest
0018-4sum
0049-group-anagrams
0088-merge-sorted-array
0169-majority-element
0242-valid-anagram
1798-max-number-of-k-sum-pairs
2148-minimum-number-of-moves-to-seat-everyone
3151-minimum-processing-time

Binary Search

0069-sqrtx
0167-two-sum-ii-input-array-is-sorted
0209-minimum-size-subarray-sum

Sliding Window

0003-longest-substring-without-repeating-characters
0209-minimum-size-subarray-sum
0219-contains-duplicate-ii
0643-maximum-average-subarray-i

Prefix Sum

0209-minimum-size-subarray-sum
1603-running-sum-of-1d-array

Divide and Conquer

0053-maximum-subarray
0169-majority-element
0954-maximum-sum-circular-subarray

Dynamic Programming

0005-longest-palindromic-substring
0045-jump-game-ii
0053-maximum-subarray
0055-jump-game
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
0122-best-time-to-buy-and-sell-stock-ii
0392-is-subsequence
0954-maximum-sum-circular-subarray
1013-fibonacci-number

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0012-integer-to-roman
0013-roman-to-integer
0036-valid-sudoku
0041-first-missing-positive
0049-group-anagrams
0128-longest-consecutive-sequence
0141-linked-list-cycle
0149-max-points-on-a-line
0169-majority-element
0202-happy-number
0205-isomorphic-strings
0219-contains-duplicate-ii
0242-valid-anagram
0290-word-pattern
0383-ransom-note
0387-first-unique-character-in-a-string
0409-longest-palindrome
1798-max-number-of-k-sum-pairs
2254-check-if-every-row-and-column-contains-all-numbers
2475-largest-palindromic-number

Linked List

0002-add-two-numbers
0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0082-remove-duplicates-from-sorted-list-ii
0083-remove-duplicates-from-sorted-list
0092-reverse-linked-list-ii
0141-linked-list-cycle
0206-reverse-linked-list
0234-palindrome-linked-list
0908-middle-of-the-linked-list

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0012-integer-to-roman
0013-roman-to-integer
0048-rotate-image
0050-powx-n
0066-plus-one
0069-sqrtx
0070-climbing-stairs
0149-max-points-on-a-line
0172-factorial-trailing-zeroes
0189-rotate-array
0202-happy-number
0258-add-digits
0412-fizz-buzz
1013-fibonacci-number
1146-greatest-common-divisor-of-strings
1444-number-of-steps-to-reduce-a-number-to-zero

Recursion

0002-add-two-numbers
0021-merge-two-sorted-lists
0050-powx-n
0206-reverse-linked-list
0234-palindrome-linked-list
1013-fibonacci-number

Matrix

0036-valid-sudoku
0048-rotate-image
1791-richest-customer-wealth
2254-check-if-every-row-and-column-contains-all-numbers

String

0003-longest-substring-without-repeating-characters
0005-longest-palindromic-substring
0006-zigzag-conversion
0012-integer-to-roman
0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0049-group-anagrams
0058-length-of-last-word
0071-simplify-path
0125-valid-palindrome
0151-reverse-words-in-a-string
0205-isomorphic-strings
0242-valid-anagram
0290-word-pattern
0344-reverse-string
0383-ransom-note
0387-first-unique-character-in-a-string
0392-is-subsequence
0409-longest-palindrome
0412-fizz-buzz
1146-greatest-common-divisor-of-strings
1894-merge-strings-alternately
2243-check-if-all-as-appears-before-all-bs
2475-largest-palindromic-number

Simulation

0258-add-digits
0412-fizz-buzz

Bit Manipulation

0136-single-number
1444-number-of-steps-to-reduce-a-number-to-zero

Counting

0169-majority-element
0383-ransom-note
0387-first-unique-character-in-a-string
2475-largest-palindromic-number

Greedy

0011-container-with-most-water
0045-jump-game-ii
0055-jump-game
0122-best-time-to-buy-and-sell-stock-ii
0134-gas-station
0409-longest-palindrome
0605-can-place-flowers
2148-minimum-number-of-moves-to-seat-everyone
2475-largest-palindromic-number
3151-minimum-processing-time

Queue

0387-first-unique-character-in-a-string
0954-maximum-sum-circular-subarray

Monotonic Queue

0954-maximum-sum-circular-subarray

Geometry

0149-max-points-on-a-line

Union Find

0128-longest-consecutive-sequence

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Trie

0014-longest-common-prefix

Stack

0020-valid-parentheses
0071-simplify-path
0234-palindrome-linked-list

Tree

0100-same-tree
0104-maximum-depth-of-binary-tree

Depth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree

Breadth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree

Binary Tree

0100-same-tree
0104-maximum-depth-of-binary-tree

Counting Sort

2148-minimum-number-of-moves-to-seat-everyone

Number Theory

0258-add-digits

Memoization

0070-climbing-stairs
1013-fibonacci-number

About

Compilation of solutions for various LeetCode problems

https://leetcode.com/u/TARIQ_AIT_LAKHLIFT


Languages

Language:Java 93.3%Language:Python 6.7%