1,724 articles across 10 categories

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
Featured

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

1 min read29 Sept 2020
Read article
Set Mismatch - Hash Table - Easy - LeetCode

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

1 min29 Sept
Minimum Index Sum of Two Lists - Hash Table - Easy - LeetCode

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

1 min29 Sept
Longest Harmonious Subsequence - Hash Table - Easy - LeetCode

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

1 min28 Sept
Distribute Candies - Hash Table - Easy - LeetCode

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

1 min28 Sept
Keyboard Row - Hash Table - Easy - LeetCode

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

1 min28 Sept
Island Perimeter - Hash Table - Easy - LeetCode

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.

1 min28 Sept
Number of Boomerangs - Hash Table - Easy - LeetCode

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

1 min28 Sept
हम स्मोक सिगरेट, दीपिका, सारा, रकुल को याद नहीं करते

हम स्मोक सिगरेट, दीपिका, सारा, रकुल को याद नहीं करते

An NBA official has revealed that all the four Bollywood actresses, Deepika Padukone, Sara Ali Khan, Rakul Singh and Shr

1 min28 Sept
Longest Palindrome - Hash Table - Easy - LeetCode

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

1 min28 Sept
Find the Difference - Hash Table - Easy - LeetCode

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

1 min28 Sept
Intersection of Two Arrays II - Hash Table - Easy - LeetCode

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

1 min28 Sept
Word Pattern - Hash Table - Easy - LeetCode

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

1 min28 Sept
Valid Anagram - Hash Table - Easy - LeetCode

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 =

1 min28 Sept
Isomorphic Strings - Hash Table - Easy - LeetCode

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

1 min27 Sept