Git Product home page Git Product logo

leetcode-problems's Introduction

LeetCode-Problems

Collection of LeetCode questions

Two Pointers

0075-sort-colors
0344-reverse-string
0853-most-profit-assigning-work
2572-append-characters-to-string-to-make-subsequence
2602-maximum-enemy-forts-that-can-be-captured

String

0344-reverse-string
0409-longest-palindrome
0424-longest-repeating-character-replacement
0648-replace-words
1044-find-common-characters
1567-maximum-number-of-vowels-in-a-substring-of-given-length
2134-maximize-the-confusion-of-an-exam
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2492-length-of-the-longest-alphabetical-continuous-substring
2572-append-characters-to-string-to-make-subsequence

Greedy

0409-longest-palindrome
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1422-divide-array-in-sets-of-k-consecutive-numbers
2148-minimum-number-of-moves-to-seat-everyone
2572-append-characters-to-string-to-make-subsequence

Hash Table

0409-longest-palindrome
0424-longest-repeating-character-replacement
0523-continuous-subarray-sum
0648-replace-words
0876-hand-of-straights
1016-subarray-sums-divisible-by-k
1044-find-common-characters
1217-relative-sort-array
1370-count-number-of-nice-subarrays
1422-divide-array-in-sets-of-k-consecutive-numbers
2552-maximum-sum-of-distinct-subarrays-with-length-k

Array

0074-search-a-2d-matrix
0075-sort-colors
0153-find-minimum-in-rotated-sorted-array
0485-max-consecutive-ones
0523-continuous-subarray-sum
0648-replace-words
0792-binary-search
0853-most-profit-assigning-work
0876-hand-of-straights
0907-koko-eating-bananas
0982-minimum-increment-to-make-array-unique
1016-subarray-sums-divisible-by-k
1044-find-common-characters
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1137-height-checker
1138-grumpy-bookstore-owner
1217-relative-sort-array
1335-maximum-candies-allocated-to-k-children
1370-count-number-of-nice-subarrays
1422-divide-array-in-sets-of-k-consecutive-numbers
1538-maximum-points-you-can-obtain-from-cards
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls
2148-minimum-number-of-moves-to-seat-everyone
2454-largest-local-values-in-a-matrix
2552-maximum-sum-of-distinct-subarrays-with-length-k
2602-maximum-enemy-forts-that-can-be-captured

Database

0577-employee-bonus
0596-classes-more-than-5-students
0619-biggest-single-number
0620-not-boring-movies
1161-project-employees-i
1245-user-activity-for-the-past-30-days-i
1415-students-and-examinations
1773-percentage-of-users-attended-a-contest
1877-find-followers-count
1882-the-number-of-employees-which-report-to-each-employee
2495-number-of-unique-subjects-taught-by-each-teacher

Sorting

0075-sort-colors
0853-most-profit-assigning-work
0876-hand-of-straights
0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array
1422-divide-array-in-sets-of-k-consecutive-numbers
1675-magnetic-force-between-two-balls
2148-minimum-number-of-moves-to-seat-everyone

Trie

0648-replace-words

Math

0523-continuous-subarray-sum
1370-count-number-of-nice-subarrays

Prefix Sum

0523-continuous-subarray-sum
1016-subarray-sums-divisible-by-k
1046-max-consecutive-ones-iii
1538-maximum-points-you-can-obtain-from-cards
2134-maximize-the-confusion-of-an-exam

Counting Sort

0982-minimum-increment-to-make-array-unique
1137-height-checker
1217-relative-sort-array

Matrix

0074-search-a-2d-matrix
2454-largest-local-values-in-a-matrix

Binary Search

0074-search-a-2d-matrix
0153-find-minimum-in-rotated-sorted-array
0792-binary-search
0853-most-profit-assigning-work
0907-koko-eating-bananas
1046-max-consecutive-ones-iii
1056-capacity-to-ship-packages-within-d-days
1335-maximum-candies-allocated-to-k-children
1605-minimum-number-of-days-to-make-m-bouquets
1675-magnetic-force-between-two-balls
2134-maximize-the-confusion-of-an-exam

Sliding Window

0424-longest-repeating-character-replacement
1046-max-consecutive-ones-iii
1138-grumpy-bookstore-owner
1370-count-number-of-nice-subarrays
1538-maximum-points-you-can-obtain-from-cards
1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit
1567-maximum-number-of-vowels-in-a-substring-of-given-length
2134-maximize-the-confusion-of-an-exam
2463-minimum-recolors-to-get-k-consecutive-black-blocks
2552-maximum-sum-of-distinct-subarrays-with-length-k

Queue

1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Heap (Priority Queue)

1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Ordered Set

1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

Monotonic Queue

1549-longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit

leetcode-problems's People

Contributors

mouradmahgoub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.