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 Crystal version of this has what seems to be an error. The example shows that the triplets variable is a 2d array of chars but one of the tests has a 2d array of strings. Can someone confirm that that is an error or are we suppoed to be able to handle strings as well?
This comment is hidden because it contains spoiler information about the solution
Is there consistent compiler support for C++20 outside of MSVC? But yeah, I agree it would be nice to have.
Uy, brain fart. I meant new right column.
This comment is hidden because it contains spoiler information about the solution
for j in range(i, len(array)):
It is creating a for loop that iterates from i to the length of the array. It is used to compare i to all of the remaining elements in the array.
I feel like a lot of the Python solutions wouldn't work if the tests were good. Could be that I misread the description though and this kata is more lenient with its requirements than I first thought.
It's solutions like this where I'd appreciate a downvote button.
My solution is way overcomplicated but it works and I have finally conquered this super difficult (at least in BF) kata.
The obvious solution. lol
While reading the C++ solutions I can't help but think that they're all really ugly because the standard library lacks a concise and intuitive string formatter. It will be nice when C++20 is available everywhere and we can get our hands on the new <format> library.
I just came here to say the same thing.
I really love this solution.
If we're being honest, none of the solutions coded up in BF to this or any other kata would ever be considered best practice.
The whole language is itself bad practice. It's fun to mess around with though.
This comment is hidden because it contains spoiler information about the solution
Loading more items...