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 07989fb commit b0c63c4Copy full SHA for b0c63c4
lesson_12/structs_ts/src/lesson12.ts
@@ -9,7 +9,22 @@ export class Lesson12 {
9
const oddPoints = 0;
10
const evenPoints = 0;
11
12
+ class ListNode {
13
+ costructor(current) {
14
+ this.current = head;
15
+ this. =
16
+ }
17
18
+ // ListNode current = head;
19
20
+ // while(current != null && current.next != null) {
21
+ // if (current.val > current.next.val) {
22
+ // evenPoints++;
23
+ // } else if (current.val < current.next.val) {
24
+ // oddPoints++;
25
+ // }
26
+ // current = current.next.next;
27
28
29
if (oddPoints > evenPoints) {
30
return "Odd";
0 commit comments