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

Maximum Units on a Truck - Array - Easy - LeetCode
Featured

Maximum Units on a Truck - Array - Easy - LeetCode

You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerBoxi]: numberOfBoxesi is the number of boxes of typ

1 min read8 Jan 2021
Read article
Determine if String Halves Are Alike - String - Easy - LeetCode

Determine if String Halves Are Alike - String - Easy - LeetCode

You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half

1 min8 Jan
Number of Students Unable to Eat Lunch - String - Easy - LeetCode

Number of Students Unable to Eat Lunch - String - Easy - LeetCode

The school cafeteria offers circular and square sandwiches at lunch break, referred to by numbers 0 and 1 respectively.

2 min6 Jan
Reformat Phone Number - String - Easy - LeetCode

Reformat Phone Number - String - Easy - LeetCode

You are given a phone number as a string number. number consists of digits, spaces ' ', and/or dashes '-'. You would lik

2 min5 Jan
Count of Matches in Tournament - String - Easy - LeetCode

Count of Matches in Tournament - String - Easy - LeetCode

You are given an integer n, the number of teams in a tournament that has strange rules: If the current number of teams i

1 min28 Dec
Count the Number of Consistent Strings - String - Easy - LeetCode

Count the Number of Consistent Strings - String - Easy - LeetCode

You are given a string allowed consisting of distinct characters and an array of strings words. A string is consistent i

1 min28 Dec
Goal Parser Interpretation - String - Easy - LeetCode

Goal Parser Interpretation - String - Easy - LeetCode

You own a Goal Parser that can interpret a string command. The command consists of an alphabet of "G", "()" and/or "(al)

1 min7 Dec
Richest Customer Wealth - String - Easy - LeetCode

Richest Customer Wealth - String - Easy - LeetCode

You are given an m x n integer grid accounts where accounts[i][j] is the amount of money the i​​​​​​​​​​​th​​​​ customer

1 min2 Dec
Maximum Repeating Substring - String - Easy - LeetCode

Maximum Repeating Substring - String - Easy - LeetCode

For a string sequence, a string word is k-repeating if word concatenated k times is a substring of sequence. The word's

1 min2 Dec
Check If Two String Arrays are Equivalent - String - Easy - LeetCode

Check If Two String Arrays are Equivalent - String - Easy - LeetCode

Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise. A

1 min24 Nov
Valid Triangle Number - Array - Medium - LeetCode

Valid Triangle Number - Array - Medium - LeetCode

Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array tha

1 min21 Nov
Shortest Unsorted Continuous Subarray - Array - Medium - LeetCode

Shortest Unsorted Continuous Subarray - Array - Medium - LeetCode

Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending o

1 min21 Nov
Array Nesting - Array - Medium - LeetCode

Array Nesting - Array - Medium - LeetCode

A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, whe

1 min21 Nov
Subarray Sum Equals K - Array - Medium - LeetCode

Subarray Sum Equals K - Array - Medium - LeetCode

Given an array of integers nums and an integer k, return the total number of continuous subarrays whose sum equals to k.

1 min21 Nov
K-diff Pairs in an Array - Array - Medium - LeetCode

K-diff Pairs in an Array - Array - Medium - LeetCode

Given an array of integers nums and an integer k, return the number of unique k-diff pairs in the array. A k-diff pair i

1 min20 Nov