Top K frequent elements
Hashing, Heap, Bucket Sort, Partitioning

Search for a command to run...
Articles tagged with #data-structures
Hashing, Heap, Bucket Sort, Partitioning

Problem Statement You are given two string arrays words1 and words2. A string b is a subset of string an if every letter in b occurs in an including multiplicity. For example, "wrr" is a subset of "warrior" but is not a subset of "world". A string a ...
Problem Statement Given a list of strings words and a string pattern, return a list of words[i] that match the pattern. You may return the answer in any order. A word matches the pattern if there exists a permutation of letters p so that after replac...
![Leetcode Daily Problem - [890] Find and Replace Pattern](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Funsplash%2FxG8IQMqMITM%2Fupload%2Fv1659069284716%2F2746sSTiy.jpeg&w=3840&q=75)
Problem Statement Given two strings s and t, return true if t is an anagram of s, and false otherwise. What does this anagram mean? Anagram is a term defined for two strings. A string s is called an anagram of another string t if after rearranging a...
