Domanda di colloquio di Infosys

Please write down algorithm for bubble sort?

Risposta di colloquio

Anonimo

28 lug 2016

Loop i from 1 to N Loop J from i+1 to N if(array[i]>array[j) Swap(array[i],array[j]) else continue end loop end loop