Skip to content

Instantly share code, notes, and snippets.

Avatar

Mikhail Spitsin programmerr47

  • Careem
  • Saint-Petersburg
View GitHub Profile
View SampleTest.kt
interface One {
val havePossibility: Boolean
fun invoke()
}
interface Two {
fun invoke()
}
class Sample(
@programmerr47
programmerr47 / Depth-First-Iterator
Last active Sep 26, 2016
Iterator for "going" through tree by using DFS.
View Depth-First-Iterator
//sample Node.class of three
class Node {
Object data;
Node left;
Node right;
public boolean isLeaf() {
return left == null && right == null;
}
}