You are comparing each element of subarray with ‘g’ itself. Just increment the index of orignal array. And also make ‘count=0’ at the begining of the second ‘for’ loop
1 Like
You are comparing each element of subarray with ‘g’ itself. Just increment the index of orignal array. And also make ‘count=0’ at the begining of the second ‘for’ loop