Tag: a-hash-table
All the articles with the tag "a-hash-table".
-
LeetCode 1658 Minimum Operations to Reduce X to Zero
Solutions for LeetCode 1658, medium, tags: array, sliding window, prefix sum, hash table.
-
LeetCode 992 Subarrays with K Different Integers
Count subarrays with exactly k distinct values by subtracting two sliding-window counts.
-
LeetCode 1748 Sum of Unique Elements
Use a bounded frequency table in O(n) time, or sort and scan duplicate groups in O(n log n) time.
-
LeetCode 1624 Largest Substring Between Two Equal Characters
Solutions for LeetCode 1624, easy, tags: hash table, string.
-
LeetCode 1657 Determine if Two Strings Are Close
Solution for LeetCode 1657, medium, tags: hash table, string, sorting, counting.
-
LeetCode 1207 Unique Number of Occurrences
Solutions for LeetCode 1207, easy, tags: array, hash table.