Pregunta de entrevista de Wayfair

Separate negative from positive numbers

Respuestas de entrevistas

Anónimo

12 mar 2019

int[] arr = new int[] {-1, -2, 3, 5, 1, -6, 9, -8}; for(int i = 0; i < arr.length; i++{ if(arr[i] < 0) System.out.Println("Negative: "); System.out.Println(arr[i]); else System.out.Println("Positive: "); System.out.Println(arr[i]); }

Anónimo

28 abr 2019

Hey how the online coding test?