hash table
文章平均质量分 67
leetcode
qq184861643
这个作者很懒,什么都没留下…
展开
-
leetcode:4Sum II
Problem Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero. To make problem a bit easier, all A, B, C, D have s...原创 2018-02-22 09:56:26 · 161 阅读 · 0 评论 -
Leetcode: Subarray Sum Equals K\\\Binary Subarrays With Sum
Problem 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 = [1,1,1], k = 2 Output: 2 Note: The le...原创 2018-11-12 21:32:06 · 106 阅读 · 0 评论