Kotlin-Algorithm icon indicating copy to clipboard operation
Kotlin-Algorithm copied to clipboard

Algorithms and data structures in kotlin

Results 8 Kotlin-Algorithm issues
Sort by recently updated
recently updated
newest added
trafficstars

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 ![image](https://user-images.githubusercontent.com/28582160/30531940-f4ff971a-9c83-11e7-83bd-7e8760cc3e59.png)

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...