Skip to content

jahnaviguturi/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

361 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0014-longest-common-prefix
0026-remove-duplicates-from-sorted-array
0027-remove-element
0035-search-insert-position
0048-rotate-image
0066-plus-one
0085-maximal-rectangle
0136-single-number
0137-single-number-ii
0169-majority-element
0217-contains-duplicate
0268-missing-number
0283-move-zeroes
0840-magic-squares-in-grid
0944-delete-columns-to-make-sorted
0955-delete-columns-to-make-sorted-ii
0960-delete-columns-to-make-sorted-iii
0961-n-repeated-element-in-size-2n-array
1266-minimum-time-visiting-all-points
1292-maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
1351-count-negative-numbers-in-a-sorted-matrix
1426-find-n-unique-integers-sum-up-to-zero
1458-max-dot-product-of-two-subsequences
1895-largest-magic-square
1970-last-day-where-you-can-still-cross
1975-maximum-matrix-sum
2054-two-best-non-overlapping-events
2110-number-of-smooth-descent-periods-of-a-stock
2402-meeting-rooms-iii
2943-maximize-area-of-square-hole-in-grid
2975-maximum-square-area-by-removing-fences-from-a-field
3047-find-the-largest-area-of-square-inside-two-rectangles
3074-apple-redistribution-into-boxes
3075-maximize-happiness-of-selected-children
3433-count-mentions-per-user
3453-separate-squares-i
3454-separate-squares-ii
3562-maximum-profit-from-trading-stocks-with-discounts
3573-best-time-to-buy-and-sell-stock-v
3577-count-the-number-of-computer-unlocking-permutations
3606-coupon-code-validator
3652-best-time-to-buy-and-sell-stock-using-strategy

Hash Table

0001-two-sum
0141-linked-list-cycle
0142-linked-list-cycle-ii
0169-majority-element
0217-contains-duplicate
0268-missing-number
0756-pyramid-transition-matrix
0840-magic-squares-in-grid
0865-smallest-subtree-with-all-the-deepest-nodes
0961-n-repeated-element-in-size-2n-array
2402-meeting-rooms-iii
2975-maximum-square-area-by-removing-fences-from-a-field
3606-coupon-code-validator
3678-design-task-manager
3872-find-most-frequent-vowel-and-consonant

Binary Search

0035-search-insert-position
0069-sqrtx
0268-missing-number
1292-maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
1351-count-negative-numbers-in-a-sorted-matrix
1970-last-day-where-you-can-still-cross
2054-two-best-non-overlapping-events
3453-separate-squares-i
3454-separate-squares-ii

String

0008-string-to-integer-atoi
0014-longest-common-prefix
0058-length-of-last-word
0125-valid-palindrome
0151-reverse-words-in-a-string
0168-excel-sheet-column-title
0557-reverse-words-in-a-string-iii
0712-minimum-ascii-delete-sum-for-two-strings
0756-pyramid-transition-matrix
0944-delete-columns-to-make-sorted
0955-delete-columns-to-make-sorted-ii
0960-delete-columns-to-make-sorted-iii
2483-minimum-penalty-for-a-shop
3606-coupon-code-validator
3872-find-most-frequent-vowel-and-consonant

Math

0007-reverse-integer
0009-palindrome-number
0048-rotate-image
0050-powx-n
0066-plus-one
0069-sqrtx
0168-excel-sheet-column-title
0231-power-of-two
0258-add-digits
0263-ugly-number
0268-missing-number
0507-perfect-number
0840-magic-squares-in-grid
1266-minimum-time-visiting-all-points
1426-find-n-unique-integers-sum-up-to-zero
1440-convert-integer-to-the-sum-of-two-no-zero-integers
1925-count-square-sum-triples
2110-number-of-smooth-descent-periods-of-a-stock
3047-find-the-largest-area-of-square-inside-two-rectangles
3433-count-mentions-per-user
3577-count-the-number-of-computer-unlocking-permutations
3830-find-closest-person

Bit Manipulation

0136-single-number
0137-single-number-ii
0231-power-of-two
0268-missing-number
0756-pyramid-transition-matrix

Sorting

0169-majority-element
0217-contains-duplicate
0268-missing-number
2054-two-best-non-overlapping-events
2092-find-all-people-with-secret
2402-meeting-rooms-iii
2943-maximize-area-of-square-hole-in-grid
3074-apple-redistribution-into-boxes
3075-maximize-happiness-of-selected-children
3433-count-mentions-per-user
3606-coupon-code-validator

Two Pointers

0011-container-with-most-water
0026-remove-duplicates-from-sorted-array
0027-remove-element
0125-valid-palindrome
0141-linked-list-cycle
0142-linked-list-cycle-ii
0151-reverse-words-in-a-string
0283-move-zeroes
0557-reverse-words-in-a-string-iii

Recursion

0021-merge-two-sorted-lists
0050-powx-n
0203-remove-linked-list-elements
0206-reverse-linked-list
0231-power-of-two

Simulation

0258-add-digits
2402-meeting-rooms-iii
3433-count-mentions-per-user

Number Theory

0258-add-digits

Linked List

0021-merge-two-sorted-lists
0141-linked-list-cycle
0142-linked-list-cycle-ii
0203-remove-linked-list-elements
0206-reverse-linked-list
0237-delete-node-in-a-linked-list

Trie

0014-longest-common-prefix

Counting

0169-majority-element
3872-find-most-frequent-vowel-and-consonant

Divide and Conquer

0169-majority-element

Design

3678-design-task-manager

Heap (Priority Queue)

2054-two-best-non-overlapping-events
2402-meeting-rooms-iii
3678-design-task-manager

Ordered Set

3678-design-task-manager

Greedy

0011-container-with-most-water
0955-delete-columns-to-make-sorted-ii
1975-maximum-matrix-sum
3074-apple-redistribution-into-boxes
3075-maximize-happiness-of-selected-children

Database

0175-combine-two-tables
0181-employees-earning-more-than-their-managers

Enumeration

1925-count-square-sum-triples
2975-maximum-square-area-by-removing-fences-from-a-field

Brainteaser

3577-count-the-number-of-computer-unlocking-permutations

Combinatorics

3577-count-the-number-of-computer-unlocking-permutations

Dynamic Programming

0085-maximal-rectangle
0712-minimum-ascii-delete-sum-for-two-strings
0960-delete-columns-to-make-sorted-iii
1411-number-of-ways-to-paint-n-3-grid
1458-max-dot-product-of-two-subsequences
2054-two-best-non-overlapping-events
2110-number-of-smooth-descent-periods-of-a-stock
3562-maximum-profit-from-trading-stocks-with-discounts
3573-best-time-to-buy-and-sell-stock-v

Tree

0865-smallest-subtree-with-all-the-deepest-nodes
1161-maximum-level-sum-of-a-binary-tree
1339-maximum-product-of-splitted-binary-tree
3562-maximum-profit-from-trading-stocks-with-discounts

Depth-First Search

0865-smallest-subtree-with-all-the-deepest-nodes
1161-maximum-level-sum-of-a-binary-tree
1339-maximum-product-of-splitted-binary-tree
1970-last-day-where-you-can-still-cross
2092-find-all-people-with-secret
3562-maximum-profit-from-trading-stocks-with-discounts

Sliding Window

3652-best-time-to-buy-and-sell-stock-using-strategy

Prefix Sum

1292-maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
1895-largest-magic-square
2483-minimum-penalty-for-a-shop
3652-best-time-to-buy-and-sell-stock-using-strategy

Breadth-First Search

0865-smallest-subtree-with-all-the-deepest-nodes
1161-maximum-level-sum-of-a-binary-tree
1970-last-day-where-you-can-still-cross
2092-find-all-people-with-secret

Union Find

1970-last-day-where-you-can-still-cross
2092-find-all-people-with-secret

Graph

2092-find-all-people-with-secret

Matrix

0048-rotate-image
0085-maximal-rectangle
0840-magic-squares-in-grid
1292-maximum-side-length-of-a-square-with-sum-less-than-or-equal-to-threshold
1351-count-negative-numbers-in-a-sorted-matrix
1895-largest-magic-square
1970-last-day-where-you-can-still-cross
1975-maximum-matrix-sum

Backtracking

0756-pyramid-transition-matrix

Binary Tree

0865-smallest-subtree-with-all-the-deepest-nodes
1161-maximum-level-sum-of-a-binary-tree
1339-maximum-product-of-splitted-binary-tree

Stack

0085-maximal-rectangle

Monotonic Stack

0085-maximal-rectangle

Geometry

1266-minimum-time-visiting-all-points
3047-find-the-largest-area-of-square-inside-two-rectangles

Segment Tree

3454-separate-squares-ii

Line Sweep

3454-separate-squares-ii

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors