Pergunta de entrevista da empresa OYO

Sort an array of 0's and 1's in O(n) time.

Resposta da entrevista

Sigiloso

3 de ago. de 2017

Given a function reverse(int[] a,int i) which reverses the array from i to n(length of element).Use this function to sort an array.