is there a P function to find the index of an element in a vector?

后端 未结 0 670
鱼传尺愫
鱼传尺愫 2020-12-31 17:30

Input: V = {1, 45, 54, 71, 76, 17}, K = 54 Output: 2 Explanation : The index of 54 is 2, hence output is 2. Input: V = {3, 7, 9, 11, 13}, K = 12 Output: -1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题