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.
Something weird with random tests in Java(. It was needed to try many times with the same code before I achieved success!
CodeWars should not be a place for any kind of political messaging. This is very bad practice.
THIS IS SOOOOOOO FUUUUUUUNY!
i hate math
Approved
Enabled in this fork
My solution... Lol :)
You need better than O(n) for this.
OCaml translation
Enabled in this fork
Welp, I guess that's about as braindead as you can get. I hadn't even entered into the kata because I couldn't figure out the description, so I didn't even see the parameters. Serves me right, haha. Thanks!
width
of the board is given to you as a parameter. If you know how many cells is there and you know the width of the board, figuring out the amount of rows should be trivial?I hope I'm not overthinking, but I don't understand how we will know the correct number of rows. Are all of the inputs going to be nx2 rectangles? If so, I feel like that should be stated. Instead, all that is stated is that the "length of the array will always be a multiple of the width." But what if we are given an array of length 12? Will that be a 6x2, 2x6, 4x3, or 3x4 board? It says we are expanding beyond 3x3 squares and "accepting" rectangles of "big sizes." But without knowing the dimensions, there could be ambiguous solutions. Even with the example of a 5x2 board, what's to say it couldn't have been a 2x10 board instead? All of the conditions will still have been met.
Done for JS.
Merged.
Loading more items...