Pregunta de entrevista de Infosys

Please write down algorithm for bubble sort?

Respuesta de la entrevista

Anónimo

28 jul 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