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
Largest Perimeter Triangle - Math - Easy - LeetCode
Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area, formed from 3 of these lengths. If it is impossible to form any triangle of non-zero area, return 0β¦
DI String Match - Math - Easy - LeetCode
Given a string S that only contains "I" (increase) or "D" (decrease), let N = S.length. Return any permutation A of [0, β¦
Smallest Range I - Math - Easy - LeetCode
Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. Afteβ¦
Surface Area of 3D Shapes - Math - Easy - LeetCode
On a N * N grid, we place some 1 * 1 * 1 cubes. Each value v = grid[i][j] represents a tower of v cubes placed on top ofβ¦
Projection Area of 3D Shapes - Math - Easy - LeetCode
On a N * N grid, we place some 1 * 1 * 1 cubes that are axis-aligned with the x, y, and z axes. Each value v = grid[i][jβ¦
Binary Gap - Math - Easy - LeetCode
Given a positive integer n, find and return the longest distance between any two adjacent 1's in the binary representatiβ¦
Rectangle Overlap - Math - Easy - LeetCode
A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, andβ¦
Largest Triangle Area - Math - Easy - LeetCode
You have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the pointβ¦
Self Dividing Numbers - Math - Easy - LeetCode
A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing numβ¦
Range Addition II - Math - Easy - LeetCode
Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D arrayβ¦
Perfect Number - Math - Easy - LeetCode
A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. Aβ¦
Minimum Moves to Equal Array Elements - Math - Easy - LeetCode
Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, wβ¦
Arranging Coins - Math - Easy - LeetCode
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. β¦
Valid Perfect Square - Math - Easy - LeetCode
Given a positive integer num, write a function that returns True if num is a perfect square else False. Follow up: Do noβ¦
Power of Three - Math - Easy - LeetCode
Given an integer, write a function to determine if it is a power of three. Example 1: Input: 27Output: trueExample 2: Inβ¦