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

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Algorithms
  3. Constructive Algorithms
  4. Lena Sort
  5. Discussions

Lena Sort

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • mmweber2
    6 years ago+ 1 comment

    There is an error in the base Python2 code for this challenge:

    q = int(raw_input().strip())
    for a0 in xrange(q):
        len,c = raw_input().strip().split(' ')
        len,c = [int(len),int(c)]
    

    Since len is being used as a variable, if I try to use the builtin len() in my function, I get a TypeError that says 'int object is not callable'.

    2|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy