(items, left, right)
| 32 | } |
| 33 | |
| 34 | function RandomizedPartition(items, left, right) { |
| 35 | const rand = getRandomInt(left, right) |
| 36 | Swap(items, rand, right) |
| 37 | return Partition(items, left, right) |
| 38 | } |
| 39 | |
| 40 | function Partition(items, left, right) { |
| 41 | const x = items[right] |
no test coverage detected