1,724 articles across 10 categories

Stories, Tutorials & Life Tips

Deep dives on coding, health, recipes, travel and everything in between.

How to find Nth node from the end of a Linked List?
⭐ Blog of the Daycoding
How to find Nth node from the end of a Linked List?

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

1 min read
Read Now →

📍 Explore Reading Paths

Follow curated journeys from beginner to expert

Tenth Line - Bash - Easy - LeetCode
Featured

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

1 min read16 Oct 2020
Read article
Valid Phone Numbers - Bash - Easy - LeetCode

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

1 min16 Oct
Customers Who Never Order - Sql - Easy - LeetCode

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

1 min16 Oct
Duplicate Emails - Sql - Easy - LeetCode

Duplicate Emails - Sql - Easy - LeetCode

Write a SQL query to find all duplicate emails in a table named Person. +----+---------+| Id | Email   |+----+-----

1 min16 Oct
Employees Earning More Than Their Managers - Sql - Easy - LeetCode

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

1 min16 Oct
Second Highest Salary - Sql - Easy - LeetCode

Second Highest Salary - Sql - Easy - LeetCode

Write a SQL query to get the second highest salary from the Employee table. +----+--------+| Id | Salary |+----+--------

1 min16 Oct
Combine Two Tables - Sql - Easy - LeetCode

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

1 min16 Oct
Number of Recent Calls - Queue - Easy - LeetCode

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

1 min16 Oct
Moving Stones Until Consecutive - Brainteaser - Easy - LeetCode

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

2 min16 Oct
Nim Game - Brainteaser - Easy - LeetCode

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

2 min15 Oct
N-th Tribonacci Number - Recursion - Easy - LeetCode

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 >=

1 min15 Oct
Design Parking System - Design - Easy - LeetCode

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

2 min15 Oct
Flower Planting With No Adjacent - Graph - Easy - LeetCode

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

1 min15 Oct
Find the Town Judge - Tree - Easy - LeetCode

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

1 min14 Oct
Flood Fill - Tree - Easy - LeetCode

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

2 min9 Oct