Ad
  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    I will have to keep that in mind. Thank you.

  • Custom User Avatar

    Hi donald, plz see the issue raised by Voile above about your translation.

  • Custom User Avatar

    not an issue, sorry. Here, that works the other way around: if your code isn't fast enough, that means that your alog isn't good enough, so you have to do a better job. ;)

    Note that it's ranked only 6 kyus, meaning you certainly do that in a very wrong way, for now. So think about it, then prune useless stuff from your algo.

    ;)

  • Default User Avatar

    Hi All. I am certain that my iterative solution works as all tests pass except for extremely large numbers i.e. 10billion and 1. Please help reduce the test cases to reasonable size integers. I cannot imagine being able to iterate over such a large number in real world applications. Especially if my solution tends to O(n^2) and O(n^3). It is just impossible to win here. I presently receive a "MemoryError", all possible solutions seem not to apply except refactoring the code to reduce memory usage e.g. through creation of new objects and the like. Otherwise, I am a sitting duck. Will appreciate any help for one and all.

  • Default User Avatar

    Technically, it is not, but the longest palindrome substring within that string is a string of length 1. In that case, any random letter in the original string is considered a palindrome on it's own.

  • Default User Avatar

    So, after hours of debugging my solution, I found that the instructions were pretty misleading. How you instruct us to treat negative numbers is not how you designed the final test cases. Did you use two's complement (caught on from the discussion here), if so please update the instructions?