Skip to content

poseidon-code/NeetCode-Solutions

Repository files navigation

Arrays & Hashing

LeetCode ID Difficulty Problem Solutions
217 Easy Contains Duplicate C++GoJavaPython
242 Easy Valid Anagram C++GoJavaPython
1 Easy Two Sum C++GoJavaPython
49 Medium Group Anagrams C++GoJavaPython
347 Medium Top K Frequent Elements C++GoJavaPython
238 Medium Product of Array Except Self C++GoJavaPython
36 Medium Valid Sudoku C++GoJavaPython
128 Medium Longest Consecutive Sequence C++GoJavaPython

Two Pointers

LeetCode ID Difficulty Problem Solutions
125 Easy Valid Palindrome C++GoJavaPython
167 Medium Two Sum II C++GoJavaPython
15 Medium 3Sum C++GoJavaPython
11 Medium Container with Most Water C++GoJavaPython
42 Hard Trapping Rain Water C++GoJavaPython

Sliding Window

LeetCode ID Difficulty Problem Solutions
121 Easy Best Time to Buy & Sell Stock C++GoJavaPython
3 Medium Longest Substring Without Repeating Characters C++GoJavaPython
424 Medium Longest Repeating Character Replacement C++GoJavaPython
567 Medium Permutation in String C++GoJavaPython
76 Hard Minimum Window Substring C++GoJavaPython
239 Hard Sliding Window Maximum C++GoJavaPython

Stack

LeetCode ID Difficulty Problem Solutions
20 Easy Valid Parentheses C++GoJavaPython
155 Medium Min Stack C++GoJavaPython
150 Medium Evaluate Reverse Polish Notation C++GoJavaPython
22 Medium Generate Parentheses C++GoJavaPython
739 Medium Daily Temperatures C++GoJavaPython
853 Medium Car Fleet C++GoJavaPython
84 Hard Largest Rectangle in Histogram C++GoJavaPython

Binary Search

LeetCode ID Difficulty Problem Solutions
704 Easy Binary Search C++GoJavaPython
74 Medium Search a 2D Matrix C++GoJavaPython
875 Medium Koko Eating Bananas C++GoJavaPython
33 Medium Search in Rotated Sorted Array C++GoJavaPython
153 Medium Find Minimum in Rotated Sorted Array C++GoJavaPython
981 Medium Time Based Key-Value Store C++GoJavaPython
4 Hard Median of Two Sorted Arrays C++GoJavaPython

Linked List

LeetCode ID Difficulty Problem Solutions
206 Easy Reverse Linked List C++GoJavaPython
21 Easy Merge Two Sorted Lists C++GoJavaPython
141 Easy Linked List Cycle C++GoJavaPython
143 Medium Reorder List C++GoJavaPython
19 Medium Remove Nth Node From End of List C++GoJavaPython
2 Medium Add Two Numbers C++GoJavaPython
287 Medium Find the Duplicate Number C++GoJavaPython
146 Medium LRU Cache C++GoJavaPython
23 Hard Merge k Sorted Lists C++GoJavaPython
25 Hard Reverse Nodes in k-Group C++GoJavaPython

Trees

LeetCode ID Difficulty Problem Solutions
226 Easy Invert Binary Tree C++GoJavaPython
104 Easy Maximum Depth of Binary Tree C++GoJavaPython
543 Easy Diameter of Binary Tree C++GoJavaPython
110 Easy Balanced Binary Tree C++GoJavaPython
100 Easy Same Tree C++GoJavaPython
572 Easy Subtree Of Another Tree C++GoJavaPython
235 Medium Lowest Common Ancestor Of A Binary Search Tree C++GoJavaPython
102 Medium Binary Tree Level Order Traversal C++GoJavaPython
199 Medium Binary Tree Right Side View C++GoJavaPython
1448 Medium Count Good Nodes In Binary Tree C++GoJavaPython
98 Medium Validate Binary Search Tree C++GoJavaPython
230 Medium Kth Smallest Element In A Bst C++GoJavaPython
105 Medium Construct Binary Tree From Preorder And Inorder Traversal C++GoJavaPython
124 Hard Binary Tree Maximum Path Sum C++GoJavaPython

Tries

LeetCode ID Difficulty Problem Solutions
208 Medium Implement Trie Prefix Tree C++GoJavaPython
211 Medium Design Add And Search Words Data Structure C++GoJavaPython
212 Hard Word Search Ii C++GoJavaPython

Backtracking

LeetCode ID Difficulty Problem Solutions
78 Medium Subsets C++GoJavaPython
39 Medium Combination Sum C++GoJavaPython
46 Medium Permutations C++GoJavaPython
90 Medium Subsets II C++GoJavaPython
40 Medium Combination Sum II C++GoJavaPython
79 Medium Word Search C++GoJavaPython
131 Medium Palindrome Partitioning C++GoJavaPython
17 Medium Letter Combinations Of A Phone Number C++GoJavaPython
51 Hard N Queens C++GoJavaPython

Heap

LeetCode ID Difficulty Problem Solutions
703 Easy Kth Largest Element In A Stream C++GoJavaPython
1064 Easy Last Stone Weight C++GoJavaPython
973 Medium K Closest Points To Origin C++GoJavaPython
215 Medium Kth Largest Element In An Array C++GoJavaPython
621 Medium Task Scheduler C++GoJavaPython
355 Medium Design Twitter C++GoJavaPython
295 Hard Find Median From Data Stream C++GoJavaPython

Graph

LeetCode ID Difficulty Problem Solutions
200 Medium Number Of Islands C++GoJavaPython
695 Medium Max Area Of Island C++GoJavaPython
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy