Kotlin-Algorithm
Kotlin-Algorithm copied to clipboard
Algorithms and data structures in kotlin
this is a draft
My PR adds Breadth-First Search and Max Heap Sort. - add Breadth-First Search code, Heap code - add description - add README
``` fun shuffle(items:MutableList):List{ val rg : Random = Random() for (i in 0..items.size - 1) { val randomPosition = rg.nextInt(items.size) val tmp : T = items[i] items[i] = items[randomPosition] items[randomPosition]...
the merge sort result is always null or empty 
I just googled for a Kotlin Stack class and found this library... i'd like to open this up for discussion: things that are currently undefined: no POM -- was there...
mergesort is now mergeSort, to follow Kotlin naming conventions. items is now of type List instead of MutableList, because the subList method is only available on List. items.count() is now...