Ad
  • Default User Avatar

    looks like u solved it some time ago~~

  • Custom User Avatar

    All the tests are correct. Otherwise, if you can't pass the tests in time, your solution is not efficient enough.

  • Custom User Avatar

    I prefer to check every number from -n^3 up to n^3 in steps of 0.05 just to be sure I didn't miss anything O:)

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Not this kata issue, it seems CW is stalling to assign the honor points. Try solving another kata later, eventually they'll be assigned.

  • Default User Avatar

    i havent got any honor for solving this kata!

  • Default User Avatar

    so where should i make changes in my code?
    just add try except ?
    or any hints??

  • Custom User Avatar

    You didn't not handle exceptions that happens when you try to parse a string that is not a float. ;-)

  • Custom User Avatar

    Do you need to try all the numbers up to n to see if n is a prime? ;-)

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    im sorry i needed a quick reply
    i use python
    how do i implement in my code to accept 1000000000??
    please help me out

  • Custom User Avatar

    Do you know what ^ means in JS/Python?

    This is not an issue at all, and not a question about the kata, it's a question about the basic language features of the language you use ;-)

  • Default User Avatar

    how to input 10^10 into code??
    my code is not accepting such huge numbers,
    thanks!

  • Custom User Avatar

    Please, read what this topic should be about:

    Solutions Grouping

    About

    This site will make an attempt to group similar solutions together so that they may be voted on and discussed as a group. If you have any feedback on how this process can be improved, this is the place to talk about it.

    If you want to discuss some kata in particular, there is a Discourse section for each one.

  • Custom User Avatar

    I trying the duplicate_encode kata for Python.

    Despite all test are ok, when trying the final attemp it gives me an error in the last test, it returns:

     '))(()())())' should equal '()(((())())'
    

    My code is:

     def duplicate_encode(word):
       nword=''
       for c in word.lower():nword+='(' if word.count(c)==1 else ')' 
       return nword
    

    I do not have feedback of the input that gives error. Can someone help me please?

    Thanks.

  • Loading more items...