Stories, Tutorials
& Life Tips
Deep dives on coding, health, recipes, travel and everything in between.
📍 Explore Reading Paths
Follow curated journeys from beginner to expert
Combination Sum III - Array - Medium - LeetCode
Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Only numbers 1 through 9 are used.Each number is used at most once.Return a list of all possible …
Minimum Size Subarray Sum - Array - Medium - LeetCode
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of whic…
Rotate Array - Array - Medium - LeetCode
Given an array, rotate the array to the right by k steps, where k is non-negative. Follow up: Try to come up as many sol…
Find Peak Element - Array - Medium - LeetCode
A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1]…
Find Minimum in Rotated Sorted Array - Array - Medium - LeetCode
Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = […
Maximum Product Subarray - Array - Medium - LeetCode
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the…
Triangle - Array - Medium - LeetCode
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row be…
Construct Binary Tree from Inorder and Postorder Traversal - Array - Medium - LeetCode
Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not e…
Construct Binary Tree from Preorder and Inorder Traversal - Array - Medium - LeetCode
Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not ex…
Subsets II - Array - Medium - LeetCode
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: T…
Design an Ordered Stream - Array - Easy - LeetCode
There are n (id, value) pairs, where id is an integer between 1 and n and value is a string. No two pairs have the same …
Defuse the Bomb - Array - Easy - LeetCode
You have a bomb to defuse, and your time is running out! Your informer will provide you with a circular array code of le…
Search in Rotated Sorted Array II - Array - Medium - LeetCode
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,0,1,2,2,5,6] mi…
Get Maximum in Generated Array - Array - Easy - LeetCode
You are given an integer n. An array nums of length n + 1 is generated in the following way: nums[0] = 0nums[1] = 1nums[…
Check Array Formation Through Concatenation - Array - Easy - LeetCode
You are given an array of distinct integers arr and an array of integer arrays pieces, where the integers in pieces are …