Valid Anagram (LeetCode 242)
The problem You get two strings and . Return if is an anagram of , meaning it…
Tag
37 posts
The problem You get two strings and . Return if is an anagram of , meaning it…
The problem You get an array of integers and an integer . Return the indices of…
The problem You get an integer array and an integer . Return the values that…
The problem Design a class with two methods: stores for at time . returns…
The problem Given an integer array (values may be negative) and an integer…
The problem You get an integer array (values may be negative) and an integer…
The problem You get a string . Rearrange it so that characters appear in order…
The problem You get a valid Roman numeral as a string made of (1, 5, 10, 5…
The problem You get two strings, and . Each letter in the magazine can be used…
The problem You get two strings and . Return if some contiguous piece of is a…
The problem Given a string of lowercase letters, split it into as many parts as…
The problem You get two arrays of distinct integers, and , where every value in…
The problem You get two strings and . Return the shortest substring of that…
The problem Given an integer array (values can be negative) and an integer…
The problem You get an array of length . One value, the majority element…
The problem Design a class: stores . If the key already exists, the new value…
The problem Design a class that stores up to key-value pairs and supports…
The problem You get a string . Return the length of the longest substring…
The problem You get an uppercase string and an integer . You may change up to…
The problem Design a cache with a fixed that supports, in O(1) average time…
The problem Design a with three operations, each in O(1) average time: : add…
The problem You hold a hand of cards, each with an integer value, and a number…
The problem You get a list of strings . Group together the words that are…
The problem You get two strings and of the same length. They are isomorphic if…
The problem A row of trees is given as an array , where is the type of fruit on…
The problem You get a string of lowercase letters. Return the index of the…
The problem You get a string and a pattern . Return the list of every start…
The problem Design a simplified Twitter with four operations: : the user posts a…
The problem Implement a hash map for integer keys and values without using any…
The problem Design a system that tracks passengers on a metro network…
The problem Each node in a linked list has a , a pointer, and a pointer that…
The problem Given an array of non-negative integers and an integer , return if…
The problem Given a binary array (only 0s and 1s), return the length of the…
The problem You get two lists for the same binary tree: its preorder traversal…
The problem You get a list of accounts. Each account is a name followed by one…
Thirteen problems that drill the hash map & frequency pattern from Lesson 6. The…
The hash map is the most useful data structure in interviews. The core move is…