Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
rizhoums
Jan 19th, 2013
3,790
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Java
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
//Insertion Sort
void
insertion
(
int
a
[
]
,
int
n
)
{
int
i,j,v
;
for
(
i
=
2
;
i
<=
n
;
i
++
)
{
v
=
a
[
i
]
;
j
=
1
;
while
(
a
[
j
-
1
]
>
v
)
{
a
[
j
]
=
a
[
j
-
1
]
j
--;
a
[
j
=
v
]
;
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Free Crypto Method
CSS | 3 min ago | 0.72 KB
+12,000$ in 2 days
CSS | 3 min ago | 0.72 KB
Documents
3 min ago | 0.43 KB
Crypto admin access
4 min ago | 0.43 KB
Silk
3 hours ago | 3.74 KB
fleet_agent
11 hours ago | 5.04 KB
Altur Song Lyrics
22 hours ago | 13.27 KB
CC:T GPS Beacon
1 day ago | 0.49 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!