6 kyu
Tricky Kotlin #1: invoke a string
355 of 356ice1000
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Hello, I don't know where else to ask and since this is specifically for Kotlin I'm gonna try here. Can somebody help me out with checking where I made a mistake in any Kata using Kotlin? I don't know how to check the output log after I run the tests so I can hardly indentify errors (beginner in programming here, not just Kotlin). And I really don't understand what I am supposed to do in this Kata. I guess I should somewhere read about invoking? Thanks for your help!
println("your log here")
Btw this question should be asked on StackOverflow
I'm sry, but I still don't get it... Only thing I see after running the test (in some other kata) is expected:<[[]]> but was:<[[0, 0]]>, and below that is Stack Trace. So I really don't understand what should I put into the print line (I know what is the problem which I need to fix in this example, so I don't need to see the whole process, just want to learn for future use)
And did you mean this whole question or just the part about invoking? Thanks anyhow :)
This is a great Kata, but don't put "This is very easy!" in the beginning. It doesn't help anyone.
Think he put it there to explain why there was no starter code. Any starter code would have given the answer.
I ran into frequent timeouts trying to run the test cases for this one. Something to do with random number generation in the build environment, perhaps?
Random number generating code:
Testing code:
I've gone through 3 or 4 different Kotlin katas this morning and all of them timed-out. I don't think it's this kata specifically. The Kotlin implementation for Codewars seems to need some work.
Oh! It's very common on CW. You'll get used to it soon :D CW's servers are not very stable.
Approved
Cheers