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
Tenth Line - Bash - Easy - LeetCode
Given a text file file.txt, print just the 10th line of the file. Example: Assume that file.txt has the following content: Line 1Line 2Line 3Line 4Line 5Line 6Line 7Line 8Line 9Line 10Your script shou…
Valid Phone Numbers - Bash - Easy - LeetCode
Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash script to print al…
Customers Who Never Order - Sql - Easy - LeetCode
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all cust…
Duplicate Emails - Sql - Easy - LeetCode
Write a SQL query to find all duplicate emails in a table named Person. +----+---------+| Id | Email |+----+-----…
Employees Earning More Than Their Managers - Sql - Easy - LeetCode
The Employee table holds all employees including their managers. Every employee has an Id, and there is also a column fo…
Second Highest Salary - Sql - Easy - LeetCode
Write a SQL query to get the second highest salary from the Employee table. +----+--------+| Id | Salary |+----+--------…
Combine Two Tables - Sql - Easy - LeetCode
Write a SQL query for a report that provides the following information for each person in the Person table, regardless i…
Number of Recent Calls - Queue - Easy - LeetCode
You have a RecentCounter class which counts the number of recent requests within a certain time frame. Implement the Rec…
Moving Stones Until Consecutive - Brainteaser - Easy - LeetCode
Three stones are on a number line at positions a, b, and c. Each turn, you pick up a stone at an endpoint (ie., either t…
Nim Game - Brainteaser - Easy - LeetCode
You are playing the following Nim Game with your friend: Initially, there is a heap of stones on the table.You and your …
N-th Tribonacci Number - Recursion - Easy - LeetCode
The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= …
Design Parking System - Design - Easy - LeetCode
Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, medium, and small, wi…
Flower Planting With No Adjacent - Graph - Easy - LeetCode
You have n gardens, labeled from 1 to n, and an array paths where paths[i] = [xi, yi] describes the existence of a bidir…
Find the Town Judge - Tree - Easy - LeetCode
In a town, there are N people labelled from 1 to N. There is a rumor that one of these people is secretly the town…
Flood Fill - Tree - Easy - LeetCode
An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65…