Solution1 hash

  • 时间复杂度 O(n)

  • 空间复杂度 O(n)

可以看成是 two sum 的升级版,只是 sum 是 power of 2

Last updated