all: reformat

This commit is contained in:
Alexander Capehart
2024-04-07 23:25:52 -06:00
parent 3ca9b515cf
commit 6d6b1665e5
@@ -68,11 +68,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) {