> For the complete documentation index, see [llms.txt](https://the-winrars.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://the-winrars.gitbook.io/writeups/2020-writeups/redpwn-ctf/rev/bubbly.md).

# Bubbly

Our array is `{0x1, 0xa, 0x3, 0x2, 0x5, 0x9, 0x8, 0x7, 0x4, 0x6}`

And every number we enter `swaps arr[i]` with `arr[i+1]`

<https://www.hackerearth.com/practice/algorithms/sorting/bubble-sort/visualize/> went brrr and I got the swaps

```
1
2
3
4
5
6
7
8
1
4
5
6
7
4
5
6
4
5
3
10
```

(10 causes it to check the array)

## Flag:flag{4ft3r\_y0u\_put\_u54c0\_0n\_y0ur\_c011ege\_4pp5\_y0u\_5t1ll\_h4ve\_t0\_d0\_th15\_57uff}
