• ###### PCoelhocommented on "Affordable Vacation" kata

The level of optimization required combined with complexity for this makes this 100% not a 5kyu. This is a 4 maybe even a 3.

• ###### XioKencommented on "Affordable Vacation" kata

Oh hell no, this kata really gave some time to think about how to optimize lists and tasks

• ###### MadJayhawkcommented on "Affordable Vacation" kata

(10, 2, [9, 6, 7, 4]) comes out to 'days: 1'
(10, 2, [9, 6, 4, 7]) comes out to 'money: 10'
To me the use of the word 'consecutive' is confusing. To me 1,2,3,4 (n,n+1,n+2,...) are consecutive numbers. If by consecutive do you mean that the numbers retain the same order as in the list,ie, that they should not be sorted, the I think you should state that the hotels are visited in order as shown by their cost, 9->6->7->4, otherwise I get the impression the hotels can be visited in any order.

• ###### OsipovKonstantincommented on "Affordable Vacation" kata

Thank you for your valuable feedback! The time complexity has been added to the task description. Unfortunately, the task's difficulty level is not set by the author; it is determined by the first solvers during the beta testing phase

• ###### OsipovKonstantincommented on "Affordable Vacation" kata

Thanks for the comment! The task requires algorithms with a time complexity of O(n). To ensure that slower algorithms are not used, we need some way to check this. Very large input data is used for this purpose

• ###### SS-Stefanov1commented on "Affordable Vacation" kata

Why the hell does this have such abnormally large tests?

Given the task at hand it makes no sense to be looking through over half a milion items (hundreds of times)...

• ###### OsipovKonstantincommented on "Affordable Vacation" kata

Just to clarify, the problem statement ensures that the cost array will always have a length equal to or greater than the value of days. This means you won't encounter test cases where the cost array is shorter than the number of days, as in the example you mentioned.

• ###### OsipovKonstantincommented on "Affordable Vacation" kata

Have you observed a scenario in random tests where money=10, days=2, and cost=[7]? In Python, the cost array's length is generated to be equal to or greater than the days value

• ###### ronw13commented on "Affordable Vacation" kata

money=10, days=2, cost=[7] this should return "days 1" no? also days > length of the array... can anyone explain?

• ###### _trubcommented on "Affordable Vacation" kata

Happy to have helped!

• ###### OsipovKonstantincommented on "Affordable Vacation" kata

Thank you for the valuable advice! This test has been added to the code

• ###### _trubcommented on "Affordable Vacation" kata

That's obvious with [3, 7] coming out to 10.

(10, 2, [9, 6, 7, 4]) coming out to "days: 1" would actually explain the concept.

• ###### OsipovKonstantincommented on "Affordable Vacation" kata

The word 'consecutive' was put in italics to make it more noticeable

• ###### OsipovKonstantinresolved a suggestion on "Affordable Vacation" kata

The consecutive part of the task is illustrated by the test case (10, 2, [3, 7, 6]) -> money: 10

• ###### _trubcreated a suggestion for "Affordable Vacation" kata

There should be a test case using: (10, 2, [9, 6, 7, 3])

to make the "consecutive" aspect obvious. I got caught up by this as well.