mirror of
https://github.com/AdrianKuta/Tree-Data-Structure.git
synced 2025-07-01 07:17:59 +02:00
Set the correct file structure to maintain backward compatibility. (#18)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package com.github.adriankuta
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
import kotlin.jvm.JvmSynthetic
|
||||
|
@ -1,6 +1,4 @@
|
||||
package com.github.adriankuta.iterators
|
||||
|
||||
import com.github.adriankuta.TreeNode
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
/**
|
||||
* Tree is iterated by using `Level-order Traversal Algorithm"
|
@ -1,6 +1,4 @@
|
||||
package com.github.adriankuta.iterators
|
||||
|
||||
import com.github.adriankuta.TreeNode
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
/**
|
||||
* Tree is iterated by using `Post-order Traversal Algorithm"
|
@ -1,6 +1,4 @@
|
||||
package com.github.adriankuta.iterators
|
||||
|
||||
import com.github.adriankuta.TreeNode
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
/**
|
||||
* Tree is iterated by using `Pre-order Traversal Algorithm"
|
@ -1,10 +1,6 @@
|
||||
package com.github.adriankuta
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
import com.github.adriankuta.iterators.LevelOrderTreeIterator
|
||||
import com.github.adriankuta.iterators.PostOrderTreeIterator
|
||||
import com.github.adriankuta.iterators.PreOrderTreeIterator
|
||||
import com.github.adriankuta.iterators.TreeNodeIterators
|
||||
import com.github.adriankuta.iterators.TreeNodeIterators.*
|
||||
import com.github.adriankuta.datastructure.tree.TreeNodeIterators.*
|
||||
import kotlin.jvm.JvmSynthetic
|
||||
|
||||
open class TreeNode<T>(val value: T) : Iterable<TreeNode<T>>, ChildDeclarationInterface<T> {
|
@ -1,6 +1,5 @@
|
||||
package com.github.adriankuta
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
import com.github.adriankuta.iterators.TreeNodeIterators
|
||||
import kotlin.jvm.JvmSynthetic
|
||||
|
||||
typealias ChildDeclaration<T> = ChildDeclarationInterface<T>.() -> Unit
|
@ -1,4 +1,4 @@
|
||||
package com.github.adriankuta.iterators
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
/**
|
||||
* @see PreOrder
|
@ -1,4 +1,4 @@
|
||||
package com.github.adriankuta
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
@ -1,6 +1,5 @@
|
||||
package com.github.adriankuta
|
||||
package com.github.adriankuta.datastructure.tree
|
||||
|
||||
import com.github.adriankuta.iterators.TreeNodeIterators
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertContentEquals
|
||||
import kotlin.test.assertEquals
|
Reference in New Issue
Block a user