all: reformat
This commit is contained in:
parent
9817f7c328
commit
73e6697477
1 changed files with 6 additions and 5 deletions
|
@ -69,11 +69,12 @@ class BetterShuffleOrder(private val shuffled: IntArray) : ShuffleOrder {
|
||||||
}
|
}
|
||||||
|
|
||||||
val newShuffled = IntArray(shuffled.size + insertionCount)
|
val newShuffled = IntArray(shuffled.size + insertionCount)
|
||||||
val pivot: Int = if (insertionIndex < shuffled.size) {
|
val pivot: Int =
|
||||||
indexInShuffled[insertionIndex]
|
if (insertionIndex < shuffled.size) {
|
||||||
} else {
|
indexInShuffled[insertionIndex]
|
||||||
indexInShuffled.size
|
} else {
|
||||||
}
|
indexInShuffled.size
|
||||||
|
}
|
||||||
for (i in shuffled.indices) {
|
for (i in shuffled.indices) {
|
||||||
var currentIndex = shuffled[i]
|
var currentIndex = shuffled[i]
|
||||||
if (currentIndex > insertionIndex) {
|
if (currentIndex > insertionIndex) {
|
||||||
|
|
Loading…
Reference in a new issue