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
Implement Stack using Queues - Stack - Easy - LeetCode
Implement the following operations of a stack using queues. push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get the top element.empty() -- Return whether…
Binary Watch - Immutable - Array - Easy - LeetCode
A binary watch has 4 LEDs on the top which represent the hours (0-11), and the 6 LEDs on the bottom represent the minute…
Range Sum Query - Immutable - Array - Easy - LeetCode
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given …
House Robber - Array - Easy - LeetCode
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, t…
Peak Index in a Mountain Array - Array - Easy - LeetCode
Let's call an array arr a mountain if the following properties hold: arr.length >= 3There exists some i with 0 < i…
Find Smallest Letter Greater Than Target - Array - Easy - LeetCode
Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the …
AIIMS रिपोर्ट रूल्स सुशांत सिंह राजपूत मर्डर थ्योरी, सूत्रों का कहना है
Actor Sushant Singh Rajput was not murdered and it is a case of suicide, a team of doctors from Delhi's AIIMS has said i…
Binary Search - Array - Easy - LeetCode
Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search targ…
Heaters - String - Easy - LeetCode
Winter is coming! Your first job during the contest is to design a standard heater with a fixed warm radius to warm all …
Is Subsequence - String - Easy - LeetCode
Given a string s and a string t, check if s is subsequence of t. A subsequence of a string is a new string which is form…
Guess Number Higher or Lower - String - Easy - LeetCode
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I pic…
First Bad Version - String - Easy - LeetCode
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of yo…
Rearrange Spaces Between Words - String - Easy - LeetCode
You are given a string text of words that are placed among some number of spaces. Each word consists of one or more lowe…
Replace All ? to Avoid Consecutive Repeating Characters - String - Easy - LeetCode
Given a string s containing only lower case English letters and the '?' character, convert all the '?' characters into l…
Thousand Separator - String - Easy - LeetCode
Given an integer n, add a dot (".") as the thousands separator and return it in string format. Example 1: Input: …