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
Employee Importance - Hash Table - Easy - LeetCode
You are given a data structure of employee information, which includes the employee's unique id, their importance value and their direct subordinates' id. For example, employee 1 is the leader of empl…
Set Mismatch - Hash Table - Easy - LeetCode
The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the s…
Minimum Index Sum of Two Lists - Hash Table - Easy - LeetCode
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represe…
Longest Harmonious Subsequence - Hash Table - Easy - LeetCode
We define a harmonious array as an array where the difference between its maximum value and its minimum value is exactly…
Distribute Candies - Hash Table - Easy - LeetCode
You have n candies, the ith candy is of type candies[i]. You want to distribute the candies equally between a sister and…
Keyboard Row - Hash Table - Easy - LeetCode
Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboa…
Island Perimeter - Hash Table - Easy - LeetCode
ou are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water.…
Number of Boomerangs - Hash Table - Easy - LeetCode
Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the d…
हम स्मोक सिगरेट, दीपिका, सारा, रकुल को याद नहीं करते
An NBA official has revealed that all the four Bollywood actresses, Deepika Padukone, Sara Ali Khan, Rakul Singh and Shr…
Longest Palindrome - Hash Table - Easy - LeetCode
Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can …
Find the Difference - Hash Table - Easy - LeetCode
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s an…
Intersection of Two Arrays II - Hash Table - Easy - LeetCode
Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2]Outp…
Word Pattern - Hash Table - Easy - LeetCode
Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a…
Valid Anagram - Hash Table - Easy - LeetCode
Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = …
Isomorphic Strings - Hash Table - Easy - LeetCode
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be re…