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
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β¦