All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com_github_leetcode.prev_next.Node.kt Maven / Gradle / Ivy

There is a newer version: 1.30
Show newest version
package com_github_leetcode.prev_next

class Node(var `val`: Int) {
    constructor(i: Int, node: Node?, node1: Node?, nothing: Node?) : this(i) {
        this.prev = node
        this.next = node1
        this.child = nothing
    }

    var prev: Node? = null
    var next: Node? = null
    var child: Node? = null

    override fun toString(): String {
        return "Node{val=$`val`,next=${this.next}}"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy