Skip to content

yuvii-b/leetcode-solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

LeetCode Topics

Array

0001-two-sum
0026-remove-duplicates-from-sorted-array
0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0053-maximum-subarray
0074-search-a-2d-matrix
0075-sort-colors
0088-merge-sorted-array
0108-convert-sorted-array-to-binary-search-tree
0121-best-time-to-buy-and-sell-stock
0136-single-number
0162-find-peak-element
0200-number-of-islands
0204-count-primes
0268-missing-number
0485-max-consecutive-ones
0643-maximum-average-subarray-i
0724-find-pivot-index
0792-binary-search
1603-running-sum-of-1d-array
1646-kth-missing-positive-number
2106-find-greatest-common-divisor-of-array
3242-count-elements-with-maximum-frequency
3251-maximum-area-of-longest-diagonal-rectangle
3747-maximum-difference-between-adjacent-elements-in-a-circular-array

Binary Search

0034-find-first-and-last-position-of-element-in-sorted-array
0035-search-insert-position
0069-sqrtx
0074-search-a-2d-matrix
0162-find-peak-element
0268-missing-number
0278-first-bad-version
0374-guess-number-higher-or-lower
0792-binary-search
1646-kth-missing-positive-number

String

0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0058-length-of-last-word
0067-add-binary
0125-valid-palindrome
1264-maximum-number-of-words-you-can-type
3768-check-if-digits-are-equal-in-string-after-operations-i

Math

0002-add-two-numbers
0007-reverse-integer
0009-palindrome-number
0013-roman-to-integer
0067-add-binary
0069-sqrtx
0070-climbing-stairs
0204-count-primes
0231-power-of-two
0268-missing-number
0326-power-of-three
0342-power-of-four
0371-sum-of-two-integers
1013-fibonacci-number
1070-convert-to-base-2
2106-find-greatest-common-divisor-of-array
3768-check-if-digits-are-equal-in-string-after-operations-i

Hash Table

0001-two-sum
0003-longest-substring-without-repeating-characters
0013-roman-to-integer
0268-missing-number
1264-maximum-number-of-words-you-can-type
3242-count-elements-with-maximum-frequency

Prefix Sum

0724-find-pivot-index
1603-running-sum-of-1d-array

Sliding Window

0003-longest-substring-without-repeating-characters
0643-maximum-average-subarray-i

Divide and Conquer

0053-maximum-subarray
0108-convert-sorted-array-to-binary-search-tree
0191-number-of-1-bits

Dynamic Programming

0053-maximum-subarray
0070-climbing-stairs
0121-best-time-to-buy-and-sell-stock
1013-fibonacci-number

Matrix

0074-search-a-2d-matrix
0200-number-of-islands

Bit Manipulation

0067-add-binary
0136-single-number
0191-number-of-1-bits
0231-power-of-two
0268-missing-number
0342-power-of-four
0371-sum-of-two-integers

Sorting

0075-sort-colors
0088-merge-sorted-array
0268-missing-number

Recursion

0002-add-two-numbers
0231-power-of-two
0326-power-of-three
0342-power-of-four
1013-fibonacci-number

Enumeration

0204-count-primes

Number Theory

0204-count-primes
2106-find-greatest-common-divisor-of-array
3768-check-if-digits-are-equal-in-string-after-operations-i

Memoization

0070-climbing-stairs
1013-fibonacci-number

Two Pointers

0026-remove-duplicates-from-sorted-array
0028-find-the-index-of-the-first-occurrence-in-a-string
0075-sort-colors
0088-merge-sorted-array
0125-valid-palindrome

String Matching

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

Interactive

0278-first-bad-version
0374-guess-number-higher-or-lower

Stack

0020-valid-parentheses
0094-binary-tree-inorder-traversal

Linked List

0002-add-two-numbers

Counting

3242-count-elements-with-maximum-frequency

Depth-First Search

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0547-number-of-provinces

Breadth-First Search

0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0200-number-of-islands
0547-number-of-provinces

Union Find

0200-number-of-islands
0547-number-of-provinces

Graph

0547-number-of-provinces

Simulation

0067-add-binary
3768-check-if-digits-are-equal-in-string-after-operations-i

Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0789-kth-largest-element-in-a-stream

Binary Tree

0094-binary-tree-inorder-traversal
0100-same-tree
0101-symmetric-tree
0104-maximum-depth-of-binary-tree
0108-convert-sorted-array-to-binary-search-tree
0789-kth-largest-element-in-a-stream

Design

0789-kth-largest-element-in-a-stream

Binary Search Tree

0108-convert-sorted-array-to-binary-search-tree
0789-kth-largest-element-in-a-stream

Heap (Priority Queue)

0789-kth-largest-element-in-a-stream

Data Stream

0789-kth-largest-element-in-a-stream

Combinatorics

3768-check-if-digits-are-equal-in-string-after-operations-i

About

This repository contains my leetcode solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages