0

Get n list and compare the values inside if the numbers are same then you have to count 1 if not then return -1

Can anyone answer for this coding

24th Aug 2022, 1:21 PM
pooja balamurugan
pooja balamurugan - avatar
2 Antworten
+ 2
I think I can give you some pseudocode to get started... For loop to iterate through the list If a[i] == b[j] Count++ Else Return -1
24th Aug 2022, 1:48 PM
Ausgrindtube
Ausgrindtube - avatar