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.
the array it's the sequence of last digit in fibonacci's numbers. Every 60 numbers the sequence start over
I think this is an excellent way to teach ternary operators. I've used them quite a bit but never like this, and I feel like I understand it better now.
I fixed the warnings on submission, but given this kata is 8kyu, I think the passing state is reasonable. Having the author solution length shown is also nice to shoot for.
please see my comment above
Ruby:
This is the best level 8 kata in the history of codewars.
That's a suggestion, not an issue.
8 kyu kata represent a beginner level. At this level the kata is only challenging for users new to programming. This includes programming tasks such as:
Defining a simple function (i.e. hello world)
Basic variable assignments
Fixing basic syntax issues
Trivial algorithms such as basic if/else statements
Not an issue.
Not an issue.
Not an issue.
I think that this kata should be made more difficult. I would pass in an additional parameter that would change the price of the pizza from 200 to something more or less. The new parameter being passed in could represent either a discount or extra toppings that cost more. It could be an integer, or it could be a double that represents a percentage.
This would be a good beginning example of using the Arrays.stream() functionality. This is just a suggestion, but you might want to suggest this in the description and provide a link where the reader can learn about the Java 8 stream functionality. For example, https://www.mkyong.com/java8/java-how-to-convert-array-to-stream/ or https://www.geeksforgeeks.org/streams-arrays-java-8/
Loading more items...