Coding Practice

Neetcode and LeetCode with a thinking framework

Sequence Diagram and Pseudocode - Next Greater Element II

Here are solutions for Sequence Diagram and Pseudocode - Next Greater Element II.

7 min read

Framework Thinking - Neetcode 150 - Reconstruct Flight Path

Here are solutions for Reconstruct Flight Path.

8 min read

Framework Thinking - Neetcode 150 - K Closest Points to Origin

Here are solutions for K Closest Points to Origin.

7 min read

Framework Thinking - Neetcode 150 - Count Partitions With Max-Min Difference at Most K

Here are solutions for Count Partitions With Max-Min Difference at Most K.

6 min read

Framework Thinking - Neetcode 150 - Min Cost Climbing Stairs

Here are solutions for Min Cost Climbing Stairs.

9 min read

Framework Thinking - Neetcode 150 - Interleaving String

Here are solutions for Interleaving String.

9 min read

Framework Thinking - Neetcode 150 - Edit Distance

Here are solutions for Edit Distance.

10 min read

Framework Thinking - Neetcode 150 - House Robber

Here are solutions for House Robber.

4 min read

Framework Thinking - Neetcode 150 - Inorder Shuffle

Here are solutions for Inorder Shuffle.

4 min read

Framework Thinking - Neetcode 150 - Word Search

Here are solutions for Word Search.

9 min read

Framework Thinking - Neetcode 150 - Letter Combinations of a Phone Number

Here are solutions for Letter Combinations of a Phone Number.

6 min read

Framework Thinking - Neetcode 150 - Palindrome Partitioning

Here are solutions for Palindrome Partitioning.

8 min read

Framework Thinking - Neetcode 150 - Generate Parentheses

Here are solutions for Generate Parentheses.

7 min read

Framework Thinking - Neetcode 150 - N-Queens

Here are solutions for N-Queens.

13 min read

Framework Thinking - Neetcode 150 - Subsets With Duplicates

Here are solutions for Subsets II.

6 min read

Framework Thinking - Neetcode 150 - Count Ways of Climbing Stairs

Here are solutions for Climbing Stairs.

7 min read

Framework Thinking - Neetcode 150 - Combination Sum 2

Here are solutions for Combination Sum 2.

8 min read

Framework Thinking - Neetcode 150 - Permutations

Here are solutions for Permutations.

9 min read

Framework Thinking - Neetcode 150 - Combination Sum

Here are solutions for Combination Sum.

6 min read

Framework Thinking - Neetcode 150 - Construct Binary Tree from Preorder and Inorder Traversal

Here are solutions for Construct Binary Tree from Preorder and Inorder Traversal.

9 min read

Framework Thinking - Neetcode 150 - Binary Tree Maximum Path Sum

Here are solutions for Binary Tree Maximum Path Sum.

7 min read

Framework Thinking - Neetcode 150 - Kth Smallest Integer in BST

Here are solutions for Kth Smallest Integer in BST.

8 min read

Framework Thinking - Neetcode 150 - Subsets

Here are solutions for Subsets.

12 min read

Framework Thinking - Neetcode 150 - Serialize and Deserialize Binary Tree

Here are solutions for Serialize and Deserialize Binary Tree.

7 min read

Framework Thinking - Neetcode 150 - Count Good Nodes in Binary Tree

Here are solutions for Count Good Nodes in Binary Tree.

6 min read

Framework Thinking - Neetcode 150 - Lowest Common Ancestor in Binary Search Tree

Here are solutions for Lowest Common Ancestor in Binary Search Tree.

7 min read

Framework Thinking - Neetcode 150 - Subtree of Another Tree

Here are solutions for Subtree of Another Tree.

9 min read

Framework Thinking - Neetcode 150 - Binary Tree Right Side View

Here are solutions for Binary Tree Right Side View.

5 min read

Framework Thinking - Neetcode 150 - Binary Tree Level Order Traversal

Here are solutions for Binary Tree Level Order Traversal.

4 min read

Framework Thinking - Neetcode 150 - Same Binary Tree

Here are solutions for Same Binary Tree.

7 min read

Framework Thinking - Neetcode 150 - Balanced Binary Tree

Here are solutions for Balanced Binary Tree.

8 min read

Framework Thinking - Neetcode 150 - Diameter of Binary Tree

Here are solutions for Diameter of Binary Tree.

8 min read

Framework Thinking - Neetcode 150 - Maximum Depth of Binary Tree

Here are solutions for Maximum Depth of Binary Tree.

6 min read

Framework Thinking - Neetcode 150 - Invert Binary Tree

Here are solutions for Invert Binary Tree.

6 min read

Framework Thinking - Neetcode 150 - Merge K Sorted Linked Lists

Here are solutions for .

12 min read

Framework Thinking - Neetcode 150 - Reverse Nodes in K-Group

Here are solutions for Reverse Nodes in K-Group.

7 min read

Framework Thinking - Neetcode 150 - LRU Cache

Here are solutions for LRU Cache.

8 min read

Framework Thinking - Neetcode 150 - Find the Duplicate Number

Here are solutions for Find the Duplicate Number.

10 min read

Framework Thinking - Neetcode 150 - Copy Linked List with Random Pointer

Here are solutions for Copy Linked List with Random Pointer

6 min read

Framework Thinking - Neetcode 150 - Remove N-th Node From End of Linked List

Here are solutions for Remove N-th Node From End of Linked List.

7 min read

Framework Thinking - Neetcode 150 - Reorder Linked List

Here are solutions for Reorder Linked List.

7 min read

Framework Thinking - Neetcode 150 - Add Two Numbers

Here are solutions for Add Two Numbers.

10 min read

Framework Thinking - Neetcode 150 - Linked List Cycle Detection

Here are solutions for Linked List Cycle Detection

4 min read

Framework Thinking - Neetcode 150 - Reverse Linked List

Here are solutions for Reverse Linked List.

5 min read

Framework Thinking - Neetcode 150 - Merge Two Sorted Linked Lists

Here are solutions for Merge Two Sorted Linked Lists.

5 min read

Framework Thinking - Neetcode 150 - Median of Two Sorted Arrays

Here are solutions for Median of Two Sorted Arrays.

7 min read

Framework Thinking - Neetcode 150 - Time Based Key-Value Store

Here are solutions for Time Based Key-Value Store.

6 min read

Framework Thinking - Neetcode 150 - Find Minimum in Rotated Sorted Array

Here are solutions for Find Minimum in Rotated Sorted Array.

4 min read

Framework Thinking - Neetcode 150 - Binary Search

Here is the solutions for Binary Search.

9 min read

Framework Thinking - Neetcode 150 - Binary Search a 2D Matrix

Here are solutions for Search a 2D Matrix.

8 min read

Framework Thinking - Neetcode 150 - Search in Rotated Sorted Array

Here are solutions for Search in Rotated Sorted Array

3 min read

Framework Thinking - Neetcode 150 - Koko Eating Bananas

Here are solutions for Koko Eating Bananas.

4 min read

Framework Thinking - Neetcode 150 - Largest Rectangle In Histogram

Here is solution for Largest Rectangle In Histogram.

12 min read

Framework Thinking - Neetcode 150 - Daily Temperatures

Here is solution for Daily Temperatures.

6 min read

Framework Thinking - Neetcode 150 - Car Fleet

Here are solutions for Car Fleet problem.

5 min read

Framework Thinking - Neetcode 150 - Evaluate Reverse Polish Notation

Here is the problem for Evaluate Reverse Polish Notation.

8 min read

Framework Thinking - Neetcode 150 - Min Stack

Here is the problem for Min Stack

6 min read

Framework Thinking - Neetcode 150 - Valid Parentheses

Here is the problem for Valid Parentheses.

4 min read

Framework Thinking - Neetcode 150 - Sliding Window Maximum

Here is some notes for problem Sliding Window Maximum.

17 min read

Framework Thinking - Neetcode 150 - Minimum Window Substring

Here is the problem of Minimum Window Substring.

11 min read

Framework Thinking - Neetcode 150 - Permutation in String

Here is solution for Permutation in String.

8 min read

Framework Thinking - Neetcode 150 - Longest Repeating Character Replacement

Here is the problem for Longest Repeating Character Replacement.

8 min read

Framework Thinking - Neetcode 150 - Best Time to Buy and Sell Stock

1. Understand the problem

7 min read

Framework Thinking - Neetcode 150 - Longest Substring Without Repeating Characters

1 min read

Framework Thinking - Neetcode 150 - Longest Substring Without Repeating Characters

1. Understand the problem

9 min read

Framework Thinking - Neetcode 150 - Longest Consecutive Sequence

1. Problem (short restatement)

13 min read

Framework Thinking - Neetcode 150 - Valid Palindrome

1. Understand the problem

5 min read

Framework Thinking - Neetcode 150 - Trapping Rain Water

1. Problem understanding

9 min read

Framework Thinking - Neetcode 150 - Two Sum II — Input array is sorted

1. Understand the problem

6 min read

Framework Thinking - Neetcode 150 - Container With Most Water

1. Problem understanding

5 min read

Framework Thinking - Neetcode 150 - 3Sum

1. Understand the problem

7 min read

Framework Thinking - Neetcode 150 - Encode and Decode Strings

1. Understand the Problem

5 min read

Framework Thinking - Neetcode 150 - Valid Sudoku

1. Understand the problem

11 min read

Framework Thinking - Neetcode 150 - Products of Array Except Self

1. Understand the problem

6 min read

Framework Thinking - Neetcode 150 - Valid Anagram

1. Understand the problem

4 min read

Framework Thinking - Neetcode 150 - Top K Frequent Elements

1. Understand the problem

4 min read

Framework Thinking - Neetcode 150 - Contains Duplicate

1. Understand the problem that you solved:

4 min read

Framework Thinking - Neetcode 150 - Two Sum

1. Understand the problem

5 min read

Framework Thinking - Neetcode 150 - Group Anagrams

1. Understand the problem

3 min read

Google - Design Skiplist

1. Requirements

10 min read

Daily Leetcode - Next Greater Numerically Balanced Number

1. Thinking Process

7 min read

Google - Design In-Memory File System

1. Requirements

4 min read

Google - Product of Array Except Self

1. Thinking Process

4 min read

Google - Design Search Autocomplete System

1. Think Process

5 min read

Google - Divide Two Integers

1. Thinking Process

3 min read

Google - Random Pick with Blacklist

1. Thinking process

2 min read

Daily Leetcode - Check If Digits Are Equal in String After Operations I

1. Thinking Process

4 min read

Neetcode 150 - Two Sum

1. Brute Force

4 min read

Neetcode 150 - Group Anagrams

1. Sorting

2 min read

Neetcode 150 - Contains Duplicate

1. Brute Force

2 min read

Neetcode 150 - Valid Anagram

1. Sorting

3 min read

Neetcode 150 - Top K Frequent Elements

1. Sorting

4 min read

Neetcode 150 - Meeting Room 2

1. 🧩 Input Example

7 min read

Leetcode Daily - Maximum Frequency of an Element After Performing Operations I

1. Input, Output, Constraints

4 min read

Neetcode 150 - Non-overlapping Intervals

1. Input, Output, Constraints

3 min read

Neetcode 150 - Merge Triplets to Form Target

1. Input, Output, Constraints

3 min read

Neetcode 150 - Hand of Straights

1. Input, Output, Constraints

3 min read

Neetcode 150 - Partition Labels

Here is two solution for problem “Partition Labels”

4 min read

Leetcode Daily - Adjacent Increasing Subarrays Detection I

Here is two solution for problem “Adjacent Increasing Subarrays Detection I”

4 min read

Neetcode 150 - Jump Game 2

Here is two solution for problem “Jump Game 2”

3 min read

Leetcode 150 - Summary Ranges

Here is two solution for problem “Summary Ranges”

3 min read

Neetcode 150 - Jump Game

1. Input, Output, Constraints

3 min read

Neetcode 150 - Gas Station

1. Input, Output, Constraints

3 min read

Leetcode Daily - Find Resultant Array After Removing Anagrams

Here is two solution for problem “Find Resultant Array After Removing Anagrams”

5 min read

Leetcode 150 - Minimum Number of Arrows to Burst Balloons

Here is two solution for problem “Minimum Number of Arrows to Burst Balloons”

8 min read

Neetcode 150 - Maximum Subarray

1. Input, Output, Constraints

3 min read

WorldQuant - Live Coding - SE - Decode String

Here is two solution for problem “Decode String”

5 min read

Grab - Live Coding - Middle SE - Merge Intervals

Here is two solution for problem “Merge Interval”

4 min read

Grab - Live Coding - Senior SE - Valid Triangle Number

Here is solution for problem “Valid Triangle Number”

4 min read