Two Sum and its Time Complexity

前端 未结 0 1755
眼角桃花
眼角桃花 2021-02-12 23:41

I was going over both solutions to Two Sum on leetcode and I noticed that the n^2 solution is to basically test all combinations of two numbers and see if they sum to Target.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题