Ad
  • Custom User Avatar

    so its impossible to get right answer if we want numbers with same indexs

    Who said indexes have to match? You need to look for index in the 2nd sequence that has number that is also part of base sequence (the earliest match, obviously).