1,724 articles across 10 categories

Stories, Tutorials & Life Tips

Deep dives on coding, health, recipes, travel and everything in between.

How to find Nth node from the end of a Linked List?
⭐ Blog of the Daycoding
How to find Nth node from the end of a Linked List?

Given a linked list, remove the nth node from the end of the list and return its head. For example, Given linked list: 1->2->3->4->5, an

1 min read
Read Now →

📍 Explore Reading Paths

Follow curated journeys from beginner to expert

Find Peak Element - Array - Medium - LeetCode
Featured

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 a peak element and return its index. The array may contain multiple peaks

1 min read18 Nov 2020
Read article
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
Sort Array by Increasing Frequency - Array - Medium - LeetCode

Sort Array by Increasing Frequency - Array - Medium - LeetCode

Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple va

1 min3 Nov
Remove Duplicates from Sorted Array II - Array - Medium - LeetCode

Remove Duplicates from Sorted Array II - Array - Medium - LeetCode

Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new

1 min1 Nov
Word Search - Array - Medium - LeetCode

Word Search - Array - Medium - LeetCode

Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequential

1 min1 Nov