Skip to content

Commit fdec549

Browse files
committed
[update] Conway sequence
Look-and-say sequence 65%
1 parent b99841d commit fdec549

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Practice/Medium/Suite de Conway/javascript.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ conway = (n) => {
2525
let ligne = R.toString();
2626
for (let i = 0; i < n; i++) {
2727
ligne = ligneSuiv(ligne)
28-
// print(ligne.join(" "))
2928
}
30-
print(ligne.join(" "))
29+
ligne.length > 1 ? print(ligne.join(" ")) : print(ligne)
3130
}
3231

3332
conway(L-1);

0 commit comments

Comments
 (0)