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.
not really best practice, while a nice one-liner, there is no need for an allocation, however small
NB: .last() takes its time to go through the whole iterator.
.chars() is double-ended though, so .rev().next(), or .next_back(), or .nth_back(0) should work in constant time.
EZ
Such elegance
Haha, Im doign personal projects. I havent been on here that much.
Honey has done
20more kata since! Let's gooooooooooooThis is the Monday motivation we all need! Very well said Misuta 🥰
Hope 8 months later you rised this level. I did the same exact solution and I only practised for a couple of months and katas, but while you progress you'll see (and this message is going to those who feels the same, and I think all of we felt once at last) that you learn from previous katas new ways and methods to programming, sometimes you need bit more knowledge learn see it from another point of view. I've made a document with all katas I did, my solution and other solutions I feel interesting. If I don't understand some or whatever I ask ChatGPT; we didn't learned knowing all, right? Somebody machine or not, AI or not have to teach us. So, Ganbatte kudasai, minasan! (And sorry for my english, writting fast, sleeped poorly...)
I don't think that it's one of the best solutions: here filter is called two times, so it's likely that you iterate two time on input, which is unnecessay. This can be solve with a vanilla for loop & one if.
nice
I wish I could produce clean code like this. sigh, back to practicing...
I dig this
There will be 'RVO'.
this is voddo
Loading more items...