We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Intro to Tutorial Challenges
Intro to Tutorial Challenges
+ 0 comments Swift one-liner
func introTutorial(V: Int, arr: [Int]) -> Int { return arr.firstIndex(of: V)! }
+ 0 comments 30 points is to huge for this solution
def introTutorial(V, arr): return arr.index(V)
+ 0 comments PYTHON CODE
def introTutorial(V, arr): return arr.index(V)
+ 0 comments Python solution
def introTutorial(V, arr): return arr.index(V)
+ 0 comments for i in range(len(arr)): if arr[i] == V: return i
Load more conversations
Sort 354 Discussions, By:
Please Login in order to post a comment