Stories, Tutorials
& Life Tips
Deep dives on coding, health, recipes, travel and everything in between.

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…
📍 Explore Reading Paths
Follow curated journeys from beginner to expert
Reformat Department Table - Sql - Easy - LeetCode
Table: Department +---------------+---------+| Column Name | Type |+---------------+---------+| id | int || revenue &n…
Print in Order - Multi Threading - Easy - LeetCode
Suppose we have a class: public class Foo { public void first() { print("first"); } public void second() { p…
Shortest Distance to a Character - Array - Easy - LeetCode
Given a string S and a character C, return an array of integers representing the shortest distance from the character C …
Number of Lines To Write String - String - Easy - LeetCode
We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, a…
Rotate String - String - Easy - LeetCode
We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rig…
Swap Salary - Sql - Easy - LeetCode
Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change …
Not Boring Movies - Sql - Easy - LeetCode
X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicating t…
Classes More Than 5 Students - Sql - Easy - LeetCode
There is a table courses with columns: student and class Please list out all classes which have more than or equal to 5 …
Big Countries - Sql - Easy - LeetCode
There is a table World +-----------------+------------+------------+--------------+---------------+| name …
Relative Ranks - Array - Easy - LeetCode
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awar…
Construct the Rectangle - Maths - Easy - LeetCode
A web developer needs to know how to design a web page's size. So, given a specific rectangular web page’s area, y…
License Key Formatting - String - Easy - LeetCode
You are given a license key represented as a string S which consists of only alphanumeric character and dashes. The stri…
Fizz Buzz - List - Easy - LeetCode
Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three, it should out…
Rising Temperature - SQL - Easy - LeetCode
Table: Weather +---------------+---------+| Column Name | Type |+---------------+---------+| id &nbs…
Delete Duplicate Emails - SQL - Easy - LeetCode
Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its…