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.
Is your algorithm covering the classes of 2181 to 2189? The next musical will be in 2195 and the classes that enrol in 2187, 2188 and 2199 will get to see that musical, leaving the classes of 2181 - 2186, the other six classes
Can you help me with this example?.
I'm looking this random test with an answer of 56:
start = 2075
end = 2189
musical_every = 15
enrollment_duration = 8
The years of musicals are below.
[2075, 2090, 2105, 2120, 2135, 2150, 2165, 2180]
Between each interval, 7 students won't see the musical and there are 7 intervals, so.
7 * 7 = 49 students in total will miss the musical. The person who enroll in 2181 won't see
the final musical in the end class. So 49 + 1 = 50. Where are the other six persons.
Not necessarily. There will always be a musical for the start class only unless the school does no musicals. For the end class, it will depend on the duration for a musical to take place and also the duration of enrolment in school.
So in the end class there will be also a musical no matter what?
hi, that won'tbe added here, since this version isn't supposed to handle such a kind of grid. But you can try your solution on the 2kyu version.
ooookayyy....... :/
Weirdest thing: I tried your solution against the actual test suite and it works like a charm...
=> ?
put backticks around the input otherwise the "coment engine" will chop some of them, thinking it's formatting.
(lots of "antipatterns", in there... Mostly because you don't know yet some tools that python provides) ;o
Well, I'm surprised to realize I actually didn't ask for something...: what was the input, for what you described in the first message?
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code-and-syntax-highlighting
to make it simple, if you answer "yes" to the following, here is your problem:
Ah? x) Well, your welcome again, then ;)
mmmh... If you already use 3.6 here, it's a bit weird... Hard to tell without seeing your code, I'd say. Without it, I'd say to search for global variables. Or hidden ones... (tell me you don't have a dict as default argument of a function...? xs )
Note: if you mark your post as spoiler, there is no chances I get a notification (hence the delay in my answer: went by somewhat "randomly"...)
wild bet:
I think you may have misunderstood. You ought to think about the entire time a class is enrolled. So 2173 will be in school up to 2190 and so on. Thus, the class of 2173 and 2174 will see a musical in 2174. You check if a musical happens at any point of a class' stay in school.
nope, since you didn't open the thread with any flag. ;)
np, don't worry.
cheers
Loading more items...