We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.

Hi! @dheeraj, can you explain, please, why did you start with 57?
The first problem is 49, so I think, that 49, 100, 44 will be solved at first day.
57, 3, 95, 40 will be solved at second day.
And 98 will be solved at third day.

But in the problem statement it is given that You’ve decided that each subsequent problem solved on the day should be tougher than the previous problem you solved on that day. Then how can the solution be 57,3,95,44

@dheeraj also in the explanation of the sample tests it is written that the problems cannot be completed in order 5,7,4 in one day because the problems solved on a day should be in increasing difficulty level

57th difficulty is 1. 3 difficulty is 2. 95 difficulty is 3. 44 difficulty is 4. so the difficulty level is increasing. The difficulty rating is the index of every element. The vi rating is the value at that array index

Perhaps for clarity it would be better to call vi a "simliarity" rating or something that describes a type/category, or cardinality instead of something that is ordinal like a "rating" or "ranking". It's frustrating to have to spend time to understand a problem because of unclear language.

then that means the difficulty level for the example in the question should be something like:
v => [5, 4, 7]
difficulty => [0, 1, 2]
since The vi rating is the value at that array index@dhereraj
i still don't get why the difficulty level of 44 is 4.

## Problem solving

You are viewing a single comment's thread. Return to all comments →

n=8 k=51 , a[8] = {49 ,57 ,3, 95, 98, 100, 44, 40} we'll have 3 57, 40 95, 44 98 , 49 100 => 4 days total How come 3 is the answer??

Hi @rangasit, just a moment. I will get back.

Hi @rangansit, [57,3,95,44] [49,100] [98,40] This gives 3.

Hi!

@dheeraj, can you explain, please, why did you start with 57? The first problem is 49, so I think, that 49, 100, 44 will be solved at first day.

57, 3, 95, 40 will be solved at second day.

And 98 will be solved at third day.

But in the problem statement it is given that You’ve decided that each subsequent problem solved on the day should be tougher than the previous problem you solved on that day. Then how can the solution be 57,3,95,44

@dheeraj also in the explanation of the sample tests it is written that the problems cannot be completed in order 5,7,4 in one day because the problems solved on a day should be in increasing difficulty level

57th difficulty is 1. 3 difficulty is 2. 95 difficulty is 3. 44 difficulty is 4. so the difficulty level is increasing. The difficulty rating is the index of every element. The vi rating is the value at that array index

Perhaps for clarity it would be better to call vi a "simliarity" rating or something that describes a type/category, or cardinality instead of something that is ordinal like a "rating" or "ranking". It's frustrating to have to spend time to understand a problem because of unclear language.

then that means the difficulty level for the example in the question should be something like: v => [5, 4, 7] difficulty => [0, 1, 2] since

The vi rating is the value at that array index@dhereraj i still don't get why the difficulty level of 44 is 4.oops....Thanks a lot!