1,727 articles across 10 categories

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
Featured

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

1 min read18 Nov 2020
Read article
Minimum Size Subarray Sum - Array - Medium - LeetCode

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

1 min18 Nov
Rotate Array - Array - Medium - LeetCode

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

1 min18 Nov
Find Peak Element - Array - Medium - LeetCode

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]

1 min18 Nov
Find Minimum in Rotated Sorted Array - Array - Medium - LeetCode

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 = [

1 min18 Nov
Maximum Product Subarray - Array - Medium - LeetCode

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

1 min17 Nov
Triangle - Array - Medium - LeetCode

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

1 min17 Nov
Construct Binary Tree from Inorder and Postorder Traversal - Array - Medium - LeetCode

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

1 min17 Nov
Construct Binary Tree from Preorder and Inorder Traversal - Array - Medium - LeetCode

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

1 min17 Nov
Subsets II - Array - Medium - LeetCode

Subsets II - Array - Medium - LeetCode

Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: T

1 min17 Nov
Design an Ordered Stream - Array - Easy - LeetCode

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

2 min16 Nov
Defuse the Bomb - Array - Easy - LeetCode

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

2 min15 Nov
Search in Rotated Sorted Array II - Array - Medium - LeetCode

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

1 min10 Nov
Get Maximum in Generated Array - Array - Easy - LeetCode

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[

1 min8 Nov
Check Array Formation Through Concatenation - Array - Easy - LeetCode

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

1 min3 Nov
Blog — Page 5 | AskGif