Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
"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.
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
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
This comment is hidden because it contains spoiler information about the solution
after cliking "ATTEMPT"
Actual: arp, live, strong
Expect: arp, live, strong
Actual: arp
Expect: arp
@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 ?
@Technetium_Phenol Oh, C'mon :D It's 21st century, forget Fortran and come to Scala :D
Just faced
1 was not equal to -1
error on final 'Attemptstage. After debugging (adding print statements to check input parameters) found out that
kparameter value was
< 0` Just shared a hint here to help someone ;)@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.
This comment is hidden because it contains spoiler information about the solution
Okay, that was indeed overflow issue. My buffer was initialized as Int. Thanks for quick response!
Okay, that was indeed overflow issue. My buffer was initialized as Int. Thanks for tip!
@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.
Same issue
-1961650628 did not equal 2333316668 for scala
How could negative number be correct answer? :P Sounds like overflow issue, but I don't do scala, so idk.
Loading more items...