1,724 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

Make The String Great - String - Easy - LeetCode
Featured

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

1 min read2 Oct 2020
Read article
Reformat Date - String - Easy - LeetCode

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

1 min2 Oct
Path Crossing - String - Easy - LeetCode

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

1 min2 Oct
Backspace String Compare - Math - Easy - LeetCode

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

1 min2 Oct
Count Odd Numbers in an Interval Range - Math - Easy - LeetCode

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

1 min2 Oct
Maximum 69 Number - Math - Easy - LeetCode

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

1 min2 Oct
Convert Integer to the Sum of Two No-Zero Integers - Math - Easy - LeetCode

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

1 min2 Oct
Subtract the Product and Sum of Digits of an Integer - Math - Easy - LeetCode

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

1 min2 Oct
Find Positive Integer Solution for a Given Equation - Math - Easy - LeetCode

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

2 min2 Oct
Prime Arrangements - Math - Easy - LeetCode

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

1 min2 Oct
Day of the Year - Math - Easy - LeetCode

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. &

1 min1 Oct
Distribute Candies to People - Math - Easy - LeetCode

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

2 min1 Oct
Valid Boomerang - Math - Easy - LeetCode

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

1 min1 Oct
Divisor Game - Math - Easy - LeetCode

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

2 min1 Oct
Complement of Base 10 Integer - Math - Easy - LeetCode

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

1 min1 Oct