mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -31,7 +31,7 @@ After 2 seconds, the positions are [-2,0,0]. Now, the robot at index 1 will move
|
||||
After 3 seconds, the positions are [-3,-1,1].
|
||||
The distance between the robot at index 0 and 1 is abs(-3 - (-1)) = 2.
|
||||
The distance between the robot at index 0 and 2 is abs(-3 - 1) = 4.
|
||||
The distance between the robot at index 0 and 1 is abs(-1 - 1) = 2.
|
||||
The distance between the robot at index 1 and 2 is abs(-1 - 1) = 2.
|
||||
The sum of the pairs of all distances = 2 + 4 + 2 = 8.
|
||||
</pre>
|
||||
|
||||
|
Reference in New Issue
Block a user