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β¦
We Donβt Even Smoke Cigarettes, Said Deepika, Sara, Rakul & Shraddha: NCB Official
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β¦