all: reformat

This commit is contained in:
Alexander Capehart 2024-02-28 22:27:25 -07:00
parent 9817f7c328
commit 73e6697477
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -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) {