Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b632742 + cd1f1a9 commit dbfc891Copy full SHA for dbfc891
daily/2019-06-04.md
@@ -16,7 +16,7 @@ Return the starting gas station's index if you can travel around the circuit onc
16
## 参考答案
17
1.暴力求解,时间复杂度O(n^2)
18
>
19
-我们可以一次遍历gas,对于每一个gas我们依次遍历后面的gas,计算remian,如果remain一旦小于0,就说明不行,我们继续遍历下一个
+我们可以一次遍历gas,对于每一个gas我们依次遍历后面的gas,计算remain,如果remain一旦小于0,就说明不行,我们继续遍历下一个
20
```js
21
// bad 时间复杂度0(n^2)
22
let remain = 0;
@@ -74,3 +74,8 @@ return total >= 0? start : -1;
74
## 优秀解答
75
76
>暂缺
77
+
78
79
80
81
daily/2019-07-25.md
@@ -30,7 +30,7 @@ Example 3:
30
31
Follow up:
32
33
- Coud you solve it without converting the integer to a string?
+ Could you solve it without converting the integer to a string?
34
```
35
36
0 commit comments