Skip to content
puneetrai07Public

About

Collection of LeetCode questions to ace the coding interview!

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,612 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode

  • Collection of LeetCode questions with solutions to ace the coding interview!

  • Both questions and solutions are updated in this repository.

  • CPP and SQL (Database) Solutions

How to find your question ?

  • You can easily find the solution for your question, just press CTRL+F and search either using the question number or you can enter the topic of your question from LeetCode.

  • For Example : Question Number 1 - Two Sum can be found either by searching 1, or if it is difficult, you should try CTRL+F and than by typing "1-TWO-SUM"

THANK YOU!!

Hope you like this!

LeetCode Topics

Array

0001-two-sum
0011-container-with-most-water
0015-3sum
0036-valid-sudoku
0049-group-anagrams
0053-maximum-subarray
0128-longest-consecutive-sequence
0136-single-number
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0217-contains-duplicate
0268-missing-number
0347-top-k-frequent-elements
0462-minimum-moves-to-equal-array-elements-ii
0485-max-consecutive-ones
0739-daily-temperatures
1882-process-tasks-using-servers
2553-separate-the-digits-in-an-array
2574-left-and-right-sum-differences
3501-maximize-active-section-with-trade-ii
3633-earliest-finish-time-for-land-and-water-rides-i
3736-minimum-moves-to-equal-array-elements-iii
3882-minimum-xor-path-in-a-grid

Hash Table

0001-two-sum
0036-valid-sudoku
0049-group-anagrams
0128-longest-consecutive-sequence
0141-linked-list-cycle
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0409-longest-palindrome

Sorting

0015-3sum
0049-group-anagrams
0217-contains-duplicate
0242-valid-anagram
0268-missing-number
0347-top-k-frequent-elements
0462-minimum-moves-to-equal-array-elements-ii
3633-earliest-finish-time-for-land-and-water-rides-i

String

0005-longest-palindromic-substring
0049-group-anagrams
0125-valid-palindrome
0242-valid-anagram
0344-reverse-string
0409-longest-palindrome
0796-rotate-string
2243-calculate-digit-sum-of-a-string
2409-count-days-spent-together
3501-maximize-active-section-with-trade-ii
3970-shortest-path-with-at-most-k-consecutive-identical-characters

Divide and Conquer

0053-maximum-subarray
0347-top-k-frequent-elements

Heap (Priority Queue)

0347-top-k-frequent-elements
1882-process-tasks-using-servers
3970-shortest-path-with-at-most-k-consecutive-identical-characters

Bucket Sort

0347-top-k-frequent-elements

Counting

0347-top-k-frequent-elements

Quickselect

0347-top-k-frequent-elements

Matrix

0036-valid-sudoku
3882-minimum-xor-path-in-a-grid

Union-Find

0128-longest-consecutive-sequence

Two Pointers

0005-longest-palindromic-substring
0011-container-with-most-water
0015-3sum
0019-remove-nth-node-from-end-of-list
0125-valid-palindrome
0141-linked-list-cycle
0167-two-sum-ii-input-array-is-sorted
0189-rotate-array
0344-reverse-string
0876-middle-of-the-linked-list
3633-earliest-finish-time-for-land-and-water-rides-i

Binary Search

0167-two-sum-ii-input-array-is-sorted
0268-missing-number
3501-maximize-active-section-with-trade-ii
3633-earliest-finish-time-for-land-and-water-rides-i

Greedy

0011-container-with-most-water
0409-longest-palindrome
3633-earliest-finish-time-for-land-and-water-rides-i

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0141-linked-list-cycle
0237-delete-node-in-a-linked-list
0876-middle-of-the-linked-list

Recursion

0021-merge-two-sorted-lists

Stack

0739-daily-temperatures

Monotonic Stack

0739-daily-temperatures

Tree

0236-lowest-common-ancestor-of-a-binary-tree

Depth-First Search

0236-lowest-common-ancestor-of-a-binary-tree

Binary Tree

0236-lowest-common-ancestor-of-a-binary-tree

Math

0189-rotate-array
0268-missing-number
0462-minimum-moves-to-equal-array-elements-ii
0788-rotated-digits
2409-count-days-spent-together
3736-minimum-moves-to-equal-array-elements-iii

Bit Manipulation

0136-single-number
0268-missing-number
3882-minimum-xor-path-in-a-grid

Dynamic Programming

0005-longest-palindromic-substring
0053-maximum-subarray
0788-rotated-digits
3882-minimum-xor-path-in-a-grid

String Matching

0796-rotate-string

Simulation

2243-calculate-digit-sum-of-a-string
2553-separate-the-digits-in-an-array

Prefix Sum

2574-left-and-right-sum-differences

Segment Tree

3501-maximize-active-section-with-trade-ii

Graph Theory

3970-shortest-path-with-at-most-k-consecutive-identical-characters

Shortest Path

3970-shortest-path-with-at-most-k-consecutive-identical-characters

About

Collection of LeetCode questions to ace the coding interview!

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages