Stories, Tutorials
& Life Tips
Deep dives on coding, health, recipes, travel and everything in between.
π 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-β¦