Category: hash
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: Output: 2 Explanation: is the longest contiguous …
Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files …
Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique. Example …
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = , …
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in …