You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
v = int(input()) n = int(input()) arr = list(map(int, input().split())) i = 0 while arr[i] != v: i += 1 print(i)
Feel free to ask if you have any questions :)
Seems like cookies are disabled on this browser, please enable them to open this website
Intro to Tutorial Challenges
You are viewing a single comment's thread. Return to all comments →
Here is Python 3 solution from my HackerrankPractice repository:
Feel free to ask if you have any questions :)