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

Minimum Absolute Difference - Array - Easy - LeetCode
Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements. Return a list of pairs in ascending order(with respect to pairs), e…

Play with Chips - Array - Easy - LeetCode
There are some chips, and the i-th chip is at position chips[i]. You can perform any of the two following types of move…

Check If It Is a Straight Line - Array - Easy - LeetCode
You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if…

Cells with Odd Values in a Matrix - Array - Easy - LeetCode
Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices where indices[i] = [r…

Shift 2D Grid - Array - Easy - LeetCode
Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element at…

Minimum Time Visiting All Points - Array - Easy - LeetCode
On a plane there are n points with integer coordinates points[i] = [xi, yi]. Your task is to find the minimum time in se…

Find Winner on a Tic Tac Toe Game - Array - Easy - LeetCode
Tic-tac-toe is played by two players A and B on a 3 x 3 grid. Here are the rules of Tic-Tac-Toe: Players take turns pl…

Element Appearing More Than 25% In Sorted Array - Easy - LeetCode
Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 2…

Find Numbers with Even Number of Digits - Array - Easy - LeetCode
Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: n…

Replace Elements with Greatest Element on Right Side - Array - Easy - LeetCode
Given an array arr, replace every element in that array with the greatest element among the elements to its right, and r…

Find N Unique Integers Sum up to Zero - Array - Easy - LeetCode
Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input…

Decompress Run-Length Encoded List - Array - Easy - LeetCode
We are given a list nums of integers representing a list compressed with run-length encoding. Consider each adjacent pa…

Rank Transform of an Array - Easy - LeetCode
Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The r…

The K Weakest Rows in a Matrix - Array - Easy - LeetCode
Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k…

Check If N and Its Double Exist - Array - Easy - LeetCode
Given an array arr of integers, check if there exist two integers N and M such that N is the double of M ( i.e. N = 2 * …