HashMap & HashSet & Sliding Window
Largest Continuous Sequence Zero Sum2 Sum4 SumDiffk IIGroup AnagramsCopy List with Random PointerEqualLongest Substring Without Repeating CharactersFind the longest substring with k unique characters in a given stringLongest Substring with At Most K Distinct CharactersSubarrays with K Different IntegersNumber of Substrings Containing All Three CharactersMinimum Window SubstringMinimum Size Subarray SumShortest Subarray with Sum at Least KFraction to Recurring DecimalMax Points on a LineSubstring with Concatenation of All WordsDistinct Numbers in Window4Sum IIHotel ReviewsLongest Continuous Subarray With Absolute Diff Less Than or Equal to LimitTop K Frequent ElementsMinimum Time to Collect All Apples in a TreeLongest Substring with At Least K Repeating CharactersPeople Whose List of Favorite Companies Is Not a Subset of Another ListRearrange Words in a SentenceLongest Well-Performing IntervalSort Characters By FrequencyRabbits in ForestImage OverlapBrick WallSubarray Sums Divisible by KSwap For Longest Repeated Character SubstringShort Encoding of WordsFind Duplicate File in SystemBinary Subarrays With SumContiguous ArraySubarrays with equal 1s and 0sEqual 0, 1 and 2Implement Magic DictionaryContains Duplicate IIIMake Two Arrays Equal by Reversing Sub-arraysCheck If a String Contains All Binary Codes of Size KPrison Cells After N DaysFind Elements in a Contaminated Binary TreeFlip Columns For Maximum Number of Equal RowsLeast Number of Unique Integers after K RemovalsCheck Arithmetic ProgressionX of a Kind in a Deck of CardsMorning AssemblyIsomorphic StringsLine ReflectionGrid IlluminationMaximum Frequency StackLength of the largest subarray with contiguous elementsLength of the largest subarray with contiguous elementsFind Two Non-overlapping Sub-arrays Each With Target SumSnapshot ArrayCount pairs in array whose sum is divisible by KPairs of Non Coinciding PointsFind Anagram MappingsSmallest subarray with all occurrences of a most frequent elementInsert Delete GetRandom O(1) - Duplicates allowedMaking File Names UniqueAvoid Flood in The CityUnique Word AbbreviationDiscrepancies in the Voters ListCheck If Array Pairs Are Divisible by kMax Value of EquationNumber of Sub-arrays With Odd SumNumber of Good Ways to Split a StringRemove minimum elements from either side such that 2*min becomes more than max
Last updated