Sort by

recency

|

1865 Discussions

|

  • + 1 comment

    In Python 3, the only reliable way to match the expected hash output is to build the hash function by hand mimicing SEED 0.

  • + 0 comments

    Use Python 2 for this challenge.

    It was previously solveable using Python 3 as I have multiple correct submissions for Python 3 from a few years ago. But that exact code no longer works when I resubmit it.

    Not quite sure what changed, but something definitely did change.

    Anyhow, it still works with Python 2 so tackle this challenge with that version of Python.

  • + 0 comments

    as someone new in python, the difference in python version and lack of description of the task is frustrating thanks for everyone that mention it here

  • + 0 comments

    This was a hard one -- I was trying to find the correct answer for some time. In the end ChatGPT corrected my final approach: to use raw_input:

    if __name__ == '__main__':
        n = int(raw_input().strip())
        integer_list = map(int, raw_input().split())
        print hash(tuple(integer_list))
    
  • + 0 comments

    bro I tried to solve the question with using AI and without AI still both are not running whenever i try to print hash function it will give the answer in negative and the command will show error