all: reformat

This commit is contained in:
Alexander Capehart
2024-02-28 22:27:25 -07:00
parent 9817f7c328
commit 73e6697477
@@ -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) {