回答編集履歴
1
修正
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
```JavaScript
|
30
30
|
|
31
|
-
return prev[current] = prev[current] ? prev[current] + 1 : 0 && prev
|
31
|
+
return (prev[current] = prev[current] ? prev[current] + 1 : 0 + 1) && prev
|
32
32
|
|
33
33
|
```
|
34
34
|
|