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.
duration is not related here to number of lines your code have, but to number of loops it does.
Yeah, perhaps the solution is focusing on doing max one loop for each cost entry
Ranks are final, so they can't. I don't see a problem with 5kyu rank, as it falls in line with similar algorithmic tasks that require linear time complexity. Almost half of reviewers rated it 6kyu, so there's that as well.
Hi there! 👋
I'm the author of this kata, but during beta testing, the warriors decided to make it 5 kyu. If you can influence the level of this kata, I would really appreciate it! 😊
Your solution should have O(n) time complexity to pass extra large tests
So we're OK that other 5 kyus katas are more easy ?
Were the beta-testers kind of mathematicians ? Can't find the solution to pass extra large data ^'
I totally agree. Solving the problem should be front and center. Optimization increases the difficulty and should be a separate kata. I won't be back for sure. I already passed the first set of tests and that's enough for me.
Excellent kata!
i set on it about 6 hours or more .my first code was 40 line the seconde was 14 and the thrid was 11 line of code .and all of them riase this error Execution Timed Out (12000 ms) (:)---(:)
i even try to ask chatgpt and it also faild . i think i will try this kata later
ok thanks i will try agian
Website support it. There is no need fix. You need to make better solution.
error(Extra large random test 0) /n
Execution Timed Out (12000 ms) /n
the len of the cost list is 65595 its too mach as the website don't suppurt it i wish that you will edit the extra larg tests
thanks , i solved this kata but it give me error(Extra large random test 0)
In the description:
So, in 5 consecutive days, you can get the cheapest accommodation of
[5,4,3,2,1] = 15
.Loading more items...