Question d’entretien chez Wayfair

Separate negative from positive numbers

Réponses aux questions d'entretien

Utilisateur anonyme

12 mars 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]); }

Utilisateur anonyme

28 avr. 2019

Hey how the online coding test?