add SortedBinaryTreeNode

This commit is contained in:
2025-02-26 20:57:17 +06:00
parent 8b007bb3af
commit 98c7b48625
4 changed files with 466 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
package dev.inmo.micro_utils.common
/**
* Creates simple [Comparator] which will use [compareTo] of [T] for both objects
*/
fun <T : Comparable<C>, C : T> T.createComparator() = Comparator<C> { o1, o2 -> o1.compareTo(o2) }