Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

perl turbo sort

$
0
0

Hey everyone, I was trying to do the turbo sort challenge with perl and I am having a hard time splitting it. Here is what I have so far:

my @numbers = <>; chomp(@numbers); my @sorted = sort {$a <=> $b} @numbers; split /^/, @sorted; print @sorted;

Any insight is greatly appreciated! :)


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>