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

Combination Sum - Array - Medium - LeetCode
Featured

Combination Sum - Array - Medium - LeetCode

Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinatio

1 min read25 Oct 2020
Read article
Find First and Last Position of Element in Sorted Array - Array - Medium - LeetCode

Find First and Last Position of Element in Sorted Array - Array - Medium - LeetCode

Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value

1 min25 Oct
Search in Rotated Sorted Array - Array - Medium - LeetCode

Search in Rotated Sorted Array - Array - Medium - LeetCode

You are given an integer array nums sorted in ascending order, and an integer target. Suppose that nums is rotated at so

1 min24 Oct
Next Permutation - Array - Medium - LeetCode

Next Permutation - Array - Medium - LeetCode

Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If

1 min24 Oct
4Sum - Array - Medium - LeetCode

4Sum - Array - Medium - LeetCode

Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c +

1 min24 Oct
Two Strings - HashMap - Easy - HackerRank

Two Strings - HashMap - Easy - HackerRank

Given two strings, determine if they share a common substring. A substring may be as small as one character. For example

1 min24 Oct
New Year Chaos - Array - Medium - HackerRank

New Year Chaos - Array - Medium - HackerRank

It's New Year's Day and everyone's in line for the Wonderland rollercoaster ride! There are a number of people queued up

2 min24 Oct
3Sum Closest - Array - Medium - LeetCode

3Sum Closest - Array - Medium - LeetCode

Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to tar

1 min23 Oct
3Sum - Array - Medium - LeetCode

3Sum - Array - Medium - LeetCode

Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets

1 min19 Oct
Container With Most Water - Array - Medium - LeetCode

Container With Most Water - Array - Medium - LeetCode

Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines ar

1 min18 Oct
Largest Substring Between Two Equal Characters - Array - Easy - LeetCode

Largest Substring Between Two Equal Characters - Array - Easy - LeetCode

Given a string s, return the length of the longest substring between two equal characters, excluding the two characters.

1 min18 Oct
Mean of Array After Removing Some Elements - Array - Easy - LeetCode

Mean of Array After Removing Some Elements - Array - Easy - LeetCode

1619. Mean of Array After Removing Some ElementsEasy 30 5 Add to List ShareGiven an integer array arr, return the mean o

1 min18 Oct
Maximum Nesting Depth of the Parentheses - Stack - Easy - LeetCode

Maximum Nesting Depth of the Parentheses - Stack - Easy - LeetCode

A string is a valid parentheses string (denoted VPS) if it meets one of the following: It is an empty string "", or a si

1 min18 Oct
Special Array With X Elements Greater Than or Equal X - Array - Easy - LeetCode

Special Array With X Elements Greater Than or Equal X - Array - Easy - LeetCode

You are given an array nums of non-negative integers. nums is considered special if there exists a number x such that th

1 min18 Oct
Number of Days Between Two Dates - Maths - Easy - LeetCode

Number of Days Between Two Dates - Maths - Easy - LeetCode

Write a program to count the number of days between two dates. The two dates are given as strings, their format is YYYY-

1 min18 Oct