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

Reformat Department Table - Sql - Easy - LeetCode
Featured

Reformat Department Table - Sql - Easy - LeetCode

Table: Department +---------------+---------+| Column Name   | Type    |+---------------+---------+| id            | int     || revenue   &n

2 min read18 Oct 2020
Read article
Print in Order - Multi Threading - Easy - LeetCode

Print in Order - Multi Threading - Easy - LeetCode

Suppose we have a class: public class Foo {  public void first() { print("first"); }  public void second() { p

1 min18 Oct
Shortest Distance to a Character - Array - Easy - LeetCode

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

1 min18 Oct
Number of Lines To Write String - String - Easy - LeetCode

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

1 min17 Oct
Rotate String - String - Easy - LeetCode

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

1 min17 Oct
Swap Salary - Sql - Easy - LeetCode

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

1 min17 Oct
Not Boring Movies - Sql - Easy - LeetCode

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

1 min17 Oct
Classes More Than 5 Students - Sql - Easy - LeetCode

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

1 min17 Oct
Big Countries - Sql - Easy - LeetCode

Big Countries - Sql - Easy - LeetCode

There is a table World +-----------------+------------+------------+--------------+---------------+| name    

1 min17 Oct
Relative Ranks - Array - Easy - LeetCode

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

1 min17 Oct
Construct the Rectangle - Maths - Easy - LeetCode

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

1 min17 Oct
License Key Formatting - String - Easy - LeetCode

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

1 min17 Oct
Fizz Buzz - List - Easy - LeetCode

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

1 min16 Oct
Rising Temperature - SQL - Easy - LeetCode

Rising Temperature - SQL - Easy - LeetCode

Table: Weather +---------------+---------+| Column Name   | Type    |+---------------+---------+| id &nbs

1 min16 Oct
Delete Duplicate Emails - SQL - Easy - LeetCode

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

1 min16 Oct