BUBBLE SORT USING RUBY ARRAY SIZE 100

#!/usr/bin/ruby =begin bubble sort in php by detour@metalshell.com Generate random numbers then sort them. Ported to Ruby by Jeffrin Jose T Licensed : GPL =end array_size = 100 x = 0 y = 0 z = 0 hold = 0 ran = Array.new(array_size) while x < array_size ran[x] = rand(1..1000) x +=1 end x = …

What is the difference between ls -a and ls -A ?

commandline session $who jeffrin tty7 2014-03-30 00:04 (:0) jeffrin pts/0 2014-03-30 00:06 (:0) $’who’ jeffrin tty7 2014-03-30 00:04 (:0) jeffrin pts/0 2014-03-30 00:06 (:0) $`who` bash: jeffrin: command not found $ls -a > a.txt $ls -A > A.txt $diff a.txt A.txt 1,2d0 < . A.txt $cmp a.txt A.txt a.txt A.txt differ: byte 1, line 1 …

BUBBLE SORTING USING C CODE

/* bubblesort ported to c by Jeffrin Jose T <ahiliation@yahoo.co.in> from bubble.php by detour@metalshell.com License : GPL. */ #include<stdio.h> #include<stdlib.h> main() { int array_size=400; int ran[1000]; int x,y,hold; for(x = 0; x < array_size; x++) ran[x]= rand(); for(x = 0; x < array_size; x++) { for(y = 0; y < array_size; y++) { if(ran[x] < …