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
Make The String Great - String - Easy - LeetCode
Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where: 0 <= i <= s.length - 2s[i] is a lower-case…
Reformat Date - String - Easy - LeetCode
Given a date string in the form Day Month Year, where: Day is in the set {"1st", "2nd", "3rd", "4th", ..., "30th", "31st…
Path Crossing - String - Easy - LeetCode
Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west…
Backspace String Compare - Math - Easy - LeetCode
Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace cha…
Count Odd Numbers in an Interval Range - Math - Easy - LeetCode
Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). E…
Maximum 69 Number - Math - Easy - LeetCode
Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at mos…
Convert Integer to the Sum of Two No-Zero Integers - Math - Easy - LeetCode
Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal representation. Ret…
Subtract the Product and Sum of Digits of an Integer - Math - Easy - LeetCode
Given an integer number n, return the difference between the product of its digits and the sum of its digits. Exam…
Find Positive Integer Solution for a Given Equation - Math - Easy - LeetCode
Given a function f(x, y) and a value z, return all positive integer pairs x and y where f(x,y) == z. The function …
Prime Arrangements - Math - Easy - LeetCode
Return the number of permutations of 1 to n so that prime numbers are at prime indices (1-indexed.) (Recall that an inte…
Day of the Year - Math - Easy - LeetCode
Given a string date representing a Gregorian calendar date formatted as YYYY-MM-DD, return the day number of the year. &…
Distribute Candies to People - Math - Easy - LeetCode
We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to th…
Valid Boomerang - Math - Easy - LeetCode
A boomerang is a set of 3 points that are all distinct and not in a straight line. Given a list of three points in the p…
Divisor Game - Math - Easy - LeetCode
Alice and Bob take turns playing a game, with Alice starting first. Initially, there is a number N on the chalkboard. &n…
Complement of Base 10 Integer - Math - Easy - LeetCode
Every non-negative integer N has a binary representation. For example, 5 can be represented as "101" in binary, 11…