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
  • Practice
  • Certification
  • Compete
  • Career Fair
  • Hiring developers?
  1. Practice
  2. Data Structures
  3. Linked Lists
  4. Insert a Node at the Tail of a Linked List
  5. Discussions

Insert a Node at the Tail of a Linked List

Problem
Submissions
Leaderboard
Discussions
Editorial

Sort 1359 Discussions, By:

votes

Please Login in order to post a comment

  • devasood
    5 years ago+ 0 comments

    seriously, show main function as uneditable.. its tough to debug with "wrong answer" and "right answer"

    269|
    Permalink
  • micahwood50
    4 years ago+ 0 comments

    This passes tests. (Python 3)

    def Insert(head, data):
        print("Right Answer!")
        exit()
    
    73|
    Permalink
  • jbouhier
    3 years ago+ 0 comments

    This challenge does NOT work any more guys.

    53|
    Permalink
  • Eric_Day87
    3 years ago+ 0 comments

    Your python implementations break because of inconsistent use of tabs/spaces. It's in your main function, line 52. It's locked, so we can't even fix it.

    39|
    Permalink
  • a_good
    3 years ago+ 0 comments

    There is an error with the output verifier for C++\C++14, C# and Java!

    Your Output (stdout) Right Answer!

    Expected Output 247 678 159 17

    The question explicitly says: "Do not print anything to stdout/console."

    35|
    Permalink
Load more conversations

Need Help?


View editorial
View top submissions
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature