LeetCode刷题笔记(4Sum II)

以后打算每天早上刷题,刚刚又刷了一道题,本来很快就解决了的,但是由于下标问题,一直被坑着不能动,事实证明学习算法的人还是得细心呀,下面来分享下经验吧!  具体题目如下: 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]
相关文章
相关标签/搜索