Order the numbers 1 through n
, starting at index i
and
proceeding rightward then leftward.
1 | sort_rightleft(x, i)
|
i |
An integer between 1 and |
n |
A positive integer. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.