diff --git a/kotlin/sprint2/E/Solution.kt b/kotlin/sprint2/E/Solution.kt index dfc5318b..25403230 100644 --- a/kotlin/sprint2/E/Solution.kt +++ b/kotlin/sprint2/E/Solution.kt @@ -1,17 +1,11 @@ /** * Comment it before submitting - * - * class Node { - * var value: V - * var next: Node? - * var prev: Node? - * - * constructor(value: V) { - * this.value = value - * next = null - * prev = null - * } - * } + * + * class Node( + * var value: V, + * var prev: Node? = null, + * var next: Node? = null + * ) */ @@ -37,4 +31,4 @@ fun test() { assert(node1.next === node0) assert(node1.prev === node2) assert(node0.prev === node1) -} \ No newline at end of file +}