0

Given two arrays how to print smallest unmatched elements present in 1st array

Array1 1 3 4 array2 1 3 5 7 output 4

27th Aug 2019, 8:24 AM
Shahanshah
Shahanshah - avatar
1 Resposta
+ 1
1. Sort both array elements in ascending order. 2. Compare each element of array and 1st mismatch will give you the 1st smallest mismatching number.
27th Aug 2019, 9:13 AM
Kuri
Kuri - avatar