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.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Algorithms
  3. Sorting
  4. Intro to Tutorial Challenges
  5. Discussions

Intro to Tutorial Challenges

Problem
Submissions
Leaderboard
Discussions

Sort 354 Discussions, By:

recency

Please Login in order to post a comment

  • rcanbabaoglu
    1 week ago+ 0 comments

    Swift one-liner

    func introTutorial(V: Int, arr: [Int]) -> Int {
        return arr.firstIndex(of: V)!
    }
    
    0|
    Permalink
  • macdonald_l_kyn
    2 months ago+ 0 comments

    30 points is to huge for this solution

    def introTutorial(V, arr):
        return arr.index(V)
    
    0|
    Permalink
  • Chiranthana_E_B1
    2 months ago+ 0 comments

    PYTHON CODE

    def introTutorial(V, arr):
        return arr.index(V)
    
    0|
    Permalink
  • veenaonkar790
    3 months ago+ 0 comments

    Python solution

    def introTutorial(V, arr):
        return arr.index(V)
    
    0|
    Permalink
  • dhanrajrajyagur1
    3 months ago+ 0 comments

    for i in range(len(arr)): if arr[i] == V: return i

    0|
    Permalink
Load more conversations

Need Help?


View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy