pull <-
function(a,n,k)
{
b=0
b=a
l=1
lr=n
while (l<lr)
{
ax=b[k]
jnc=l
j=lr
while (jnc<=j)
{
while (b[jnc]<ax)
{
jnc=jnc+1
}
while (b[j]>ax)
{
j=j-1
}
if (jnc<=j)
{
buffer=b[jnc]
b[jnc]=b[j]
b[j]=buffer
jnc=jnc+1
j=j-1
}
}
if (j<k)
{
l=jnc
}
if (k<jnc)
{
lr=j
}
}
outp=b[k]
outp
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.