724. Find Pivot Index

Description

Description

Intuition

想法简单,就是不断while loop

  1. 因为要同时消除,可以将board上的值转化成负数作为label
  2. 仔细看第二个例子,横竖同时满足3个也要消除,就是L形的

这题也是容易跪的

Pitfall

Solution

results matching ""

    No results matching ""