Compare two arrays A and B one number at a time. Array A has numbers from 1 to 16 and Array B has number 4,8,12 and 15. one number should be compared at a time. In no match show 0 if matches show number. Next number in B must be compared from next number to the previous match.
Ex- If previous match was at N+3 next comparison must start from N+4 and result should show 0,0,0,4,0,0,0,8,0,0,0,12,0,0,15,0.

Mario ScheerenRank #1,371 · 1.2K reputationPosted Apr 17, 2019, 2:25 AM EDT
Amit KumarRank #459 · 5.4K reputationPosted Apr 17, 2019, 10:08 AM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 23, 2019, 8:05 AM EST