Stories, Tutorials
& Life Tips
Deep dives on coding, health, recipes, travel and everything in between.

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…
📍 Explore Reading Paths
Follow curated journeys from beginner to expert
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…
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…
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…
Next Permutation - Array - Medium - LeetCode
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If …
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 +…
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…
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…
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…
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 …
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…
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.…
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…
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…
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…
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-…