Skip to content

Commit e566771

Browse files
author
AmiyahJo
committed
fix: commented out lesson12.ts while loop
1 parent 14d00d6 commit e566771

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lesson_12/structs_ts/src/lesson12.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ export class Lesson12 {
1010

1111
let current = head;
1212

13-
while(current != null && current.next != null) {
14-
if (current.val > current.next.val) {
15-
evenPoints++;
16-
} else if (current.val < current.next.val) {
17-
oddPoints++;
18-
}
19-
current = current.next;
20-
}
13+
// while(current != null && current.next != null) {
14+
// if (current.val > current.next.val) {
15+
// evenPoints++;
16+
// } else if (current.val < current.next.val) {
17+
// oddPoints++;
18+
// }
19+
// current = current.next.next;
20+
// }
2121

2222
if (oddPoints > evenPoints) {
2323
return "Odd";

0 commit comments

Comments
 (0)