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.
OP solved it, closing. (You have a wrong logic check for the 1st conditional statement)
Nobody does when they start, work your way up from 8kyu ... it's a numbers game... the more you practice the better you become. In the same time don't leave any stone unturned, if you are not 100% sure on something go and read about it investigate, take a course whatever it takes. It's not about just solving problems it's also about learning how other people solve problems that is where the most gain comes from.
Now it's in TypeScript as well. Are you not entertained?
This comment is hidden because it contains spoiler information about the solution
Because no one has made a translation to it just yet ~~
Just practice. You're in the right place for it. When you complete a kata and you're looking through the solutions, 'test-drive' and take apart/put back together some of the other solutions to see how they work.
This comment is hidden because it contains spoiler information about the solution
it's your choice. You can do whatever you like.
There's a lot more 7kyus to solve, the important thing is to make sure you understand the solutions when you skip katas, then you will learn quickly :)
You can look at the test cases below your work. They show what an input and matching output will be. Try guessing what fits by those and you will begin to see a pattern. Good luck!
Try getting each part to work, one at a time. First stems and then buds etc... Output how much of the flower you have at a time, so you can track your progress.
@roshan-ican hi, try to understand what the description is saying. It explains the task very clearly. Try to concentratrate on it. You will get it soon. It's pretty easy!
Try to see patterns in the output and work your way towards a solution from there.