您即将离开力扣
您将访问一个外部网站,可能存在安全风险,请确认是否继续。
https://discuss.leetcode.com/topic/5934/is-it-best-solution-with-o-n-o-1
继续访问