bars
📈
notes
search
circle-xmark
Ctrl
k
copy
Copy
chevron-down
0454_4Sum_II
思路1 hash
直接4重循环会超时
我们把4个分成两组,用hash来保存第一组的结果,方便第二组快速查找。时间复杂度O(n*2)
Previous
0454_4Sum_II
chevron-left
Next
0455_Assign_Cookies
chevron-right
Last updated
5 years ago
Was this helpful?
Was this helpful?