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.
fixed in JavaScript, Java, C#
re-opened here for the rest
Same issue in Ruby...
Same issue with the C# version.
That sounds like a good idea. the course is ending soon and it sounded like the next time around oracle might set up their own auto-validating homework system.
I don't think it is ok to copy-paste a codepiece and republish it without written consent of the original author.
The term
All rights reserved.
from the file header means, the author wants to decide about his right of republishing it where he wants to.He did not not give away his rights by publishing it as "public domain" or specifically allowed copying/republishing and altering it by using a license like "Creative Commons", "GPL" or similar.
If you overrule the author's decision by republishing it on your own, you break the infamous copyright of the author (read as "the right to copy or republish as regarding to the original author's liking").
Giving proper citation does not redeem this. Citations are only allowed if you use snippets of an original work (a "quote"), not when citing it as a "full quote" (aka copy-and-paste everything of it).
I think the admins should have a look into this issue, sorry. Same issue accounts for the "week 1 lesson" I'm afraid.
This was the first time ever I worked with streams and lambdas. In fact after seeing this kata I decided to start learning them.
I found minor issues regarding the description. Exercise 2 wasn't clear at all for me. After completing it I still think, that the descriptions needs a rework.
You are absolutely correct. I fixed this.
The line
"if the list is between 3 and 4 elements, add as many elements as there is."
should read:
"if the list is between 2 and 4 elements, add as many elements as there is."
You're all right! That "bug" was occurred because the Addblock Plus plugin made some sort of javascript block. I disabled the plugin and all it's Okay now. I finally submit my solution.
Thanks for your help. I really appreciate it!
Your error should be: "Input [Foo, Bar, Baz] expected: but was: ". This looks like a minor bug in codewars.com forgetting to escape html characters.
You can view the real error by using your html debugger.
I made the exercise expect output of that type because the behavior of Stream.limit(long maxSize) is to set an upper limit on the stream, it does not affect streams with fewer elements than maxSize.
First of all, thank you for that Kata.
I passed in all test when I click Run Tests Button.
But when I submit it I got:
20 Passed
1 Failed
0 Errors
It fails here:
testExercise3B(lesson2.Lesson2Test)
Input [Foo, Bar, Baz] expected: but was:
Maybe I misunderstood the Exercise 3 Notes.
Any comment will be welcome!
I forgot to mention that this issue is with the java version.
The tests give numbers with duplicate values (instructions say to expect no duplicates). Tests with duplicate values expect the biggest index with the minimum number.
The tests should not give duplicate values or the instructions should mention we want the biggest index with the minimum value.