Research

### [LeetCode 503] Next Greater Element II

Approach Using Stack [Accepted] This approach makes use of a stack. This stack ...
Research

Research

### [LeetCode 25] Reverse Nodes in k-Group

Solution The problem statement clearly mentions that we are not to use any ...
Research

### [LeetCode 15] 3Sum

Solution This problem is a follow-up of Two Sum, and it is a ...
Research

### [LeetCode 1] Two Sum

Solution Article Approach 1: Brute Force The brute force approach is simple. Loop ...
Algorithms

### [LeetCode 297] Serialize and Deserialize Binary Tree

References: https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Solution Approach 1: Depth First Search (DFS) Intuition The serialization of a Binary Search ...
Research

### [LeetCode 146] LRU Cache

Solution Approach 1: Ordered dictionary Intuition We’re asked to implement the structure which provides the ...
Algorithms

### [LeetCode 138. Copy List with Random Pointer

Solution Lets first look at how the linked list looks like In the ...
Algorithms

### [LeetCode 1120] Maximum Average Subtree

Solution Approach 1: Postorder Traversal Intuition and Algorithm To calculate average value of ...
Amazon

### [LeetCode 1429] First Unique Number

Solution Approach 1: Brute Force Intuition The simplest solution for this problem is ...