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

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

There is a newer version: 1.28
Show newest version
package com_github_leetcode.left_right

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

    var left: Node? = null
    var right: Node? = null
    var next: Node? = null

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy