Ad
  • Custom User Avatar

    "You are given a string of n lines, each substring being n characters long." If you have 8 lines, you must have 8 sized string in each line.

  • Custom User Avatar

    Got something similar in Powershell:

    ARR : zone abigail theta form libe zas ;k : 2
    actual abigailtheta
    expect abigailtheta
    *
    ARR : ejjjjmmtthh zxxuueeg aanlljrrrxx dqqqaaabbb oocccffuucccjjjkkkjyyyeehh ;k : 1
    actual oocccffuucccjjjkkkjyyyeehh
    expect oocccffuucccjjjkkkjyyyeehh
    *
    ARR : ;k : 3
    actual
    expect

  • Custom User Avatar

    problem with testing after final submit:

    should pass basic tests
    Log
    Testing: zone,abigail,theta,form,libe,zas,theta,abigail, 2
    Actual: abigailtheta
    Expect: abigailtheta

    Testing: ejjjjmmtthh,zxxuueeg,aanlljrrrxx,dqqqaaabbb,oocccffuucccjjjkkkjyyyeehh, 1
    Actual: oocccffuucccjjjkkkjyyyeehh
    Expect: oocccffuucccjjjkkkjyyyeehh

  • Custom User Avatar

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

  • Custom User Avatar

    after cliking "ATTEMPT"

    Actual: arp, live, strong
    Expect: arp, live, strong

    Actual: arp
    Expect: arp

  • Custom User Avatar

    @steffan153 Nothing is visible. There is a red arrow to left of "KataTest". It's expand/collapse feature. But expanding it doesn't show anything.
    @mahesh2492 Were you able to proceed so far ?

  • Custom User Avatar

    @Technetium_Phenol Oh, C'mon :D It's 21st century, forget Fortran and come to Scala :D

  • Custom User Avatar

    Just faced 1 was not equal to -1 error on final 'Attemptstage. After debugging (adding print statements to check input parameters) found out thatkparameter value was< 0` Just shared a hint here to help someone ;)

  • Custom User Avatar

    @mahesh2492 You can add a print statement for any random failing test by if condition to print all input parameters as well as your return value.
    print your return value to find out which test is failing and then add checks accordingly.

  • Custom User Avatar

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

  • Custom User Avatar

    Okay, that was indeed overflow issue. My buffer was initialized as Int. Thanks for quick response!

  • Custom User Avatar

    Okay, that was indeed overflow issue. My buffer was initialized as Int. Thanks for tip!

  • Custom User Avatar

    @sitetester: I already gave you an answer. Ask yourself, why are you returning a negative number? (what makes it happen and how can you avoid it?)

    There's 276 scala completions, so it's not an issue with kata itself.

  • Custom User Avatar

    Same issue -1961650628 did not equal 2333316668 for scala

  • Custom User Avatar

    How could negative number be correct answer? :P Sounds like overflow issue, but I don't do scala, so idk.

  • Loading more items...