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.
It would be good if the website accepts C++20.
It only accepts C++17 as of now (10/2022).
Added
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.
No, the tests are just bad, and there're already many issues about this. Also, not a suggestion.
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
Easy while using a certain Lib, but try doing it without it
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.
Loading more items...