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.
This is the best level 8 kata in the history of codewars.
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/
I think that this should be made a little bit harder. Maybe change the problem so that you are given the perimeter and you have to return two integers that could be the width and length?
It could be made even harder if you had to create a new class that represented a rectangle...with a width, length, and isSquare boolean value? Then return the class?
This kata appears to be a duplicate. The java tests seem to be incorrect.