Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 26th, 2018
87
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.27 KB
| None
|
0
0
raw
download
clone
embed
print
report
void sort2(int* A, int n)
{
for (int i = 0; i < n; ++i)
{
int min = i;
for (int j = i+1; j < n; ++j)
{
if (A[j] < A[min])
min = j;
}
int tmp = A[i];
A[i] = A[min];
A[min] = tmp;
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
02. Mi Vida A Tu Lado | Cronología
HTML | 25 min ago | 13.76 KB
rot_all
Python | 40 min ago | 4.86 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 44 min ago | 0.39 KB
Gerenciador de Senhas
Python | 58 min ago | 6.84 KB
ESP32 OTA...
C++ | 1 hour ago | 3.00 KB
Another Life
HTML | 1 hour ago | 5.22 KB
01. La Flecha del Castigo | Afiliación
HTML | 1 hour ago | 10.95 KB
Asteroid Collision
C++ | 1 hour ago | 1.36 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!