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.
1 parent 14d00d6 commit e566771Copy full SHA for e566771
lesson_12/structs_ts/src/lesson12.ts
@@ -10,14 +10,14 @@ export class Lesson12 {
10
11
let current = head;
12
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
+ // while(current != null && current.next != null) {
+ // if (current.val > current.next.val) {
+ // evenPoints++;
+ // } else if (current.val < current.next.val) {
+ // oddPoints++;
+ // }
+ // current = current.next.next;
21
22
if (oddPoints > evenPoints) {
23
return "Odd";
0 commit comments