View SampleTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface One { | |
val havePossibility: Boolean | |
fun invoke() | |
} | |
interface Two { | |
fun invoke() | |
} | |
class Sample( |
View Depth-First-Iterator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//sample Node.class of three | |
class Node { | |
Object data; | |
Node left; | |
Node right; | |
public boolean isLeaf() { | |
return left == null && right == null; | |
} | |
} |