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 comment is hidden because it contains spoiler information about the solution
The year was 2025, and people were still excited about this method! XD
u are math genius mate
Oh, those one-liners
This is AMAZING!
This comment is hidden because it contains spoiler information about the solution
You and me same
Don't worry. There is only a little chance to come up with this yourself. Either you know it from somewhere or you don't.
I have been shamed
And a perfect example of ChatGPT answering the prompt correctly and you misreading it. He specifically wrote "I asked ChatGPT to explain this code ... and got exactly what he asked for.
is there a reason to not leaving a space? like why cramp them together instead of
return position + roll /* 2
why?
genius
.
7 lines is not bad. Honestly I'll defend my 4 line solution as being a better practice because it's more legible to other people, even if it isn't as clever as this one. And this one is clever! I'm not here to be a hater. I just get frustrated when people mistake "shortest" for "best." Imagine if one of your coworkers wrote this code, went on vacation, the code broke, and then you had to debug it. I don't think it would result in great professional cohesion.
Loading more items...