Hello Pablo and Paul,

thank you for your answers!

Your answer totally makes sense Pablo.
Looking at the problem having read what you just said, It's obvious, that 
the code is first ran against the sample input that is stated in the 
question and then against the test sets by increasing order.
My understanding (from 2 Google kickstarts and this Google code jam) was 
that there are samples provided for convenience of not having to write them 
yourself and also visualization of what the input will look like. 
You can copy these into the test mode if you like to do that. Either way if 
you choose to test or not, on submission the code is ran against test set 
1, test set 2 an so forth but NOT on the sample.

Thus my confusion when it said samples passed, runtime error. 
I read it as: All samples (cases) from test set 1 were passed to the code 
successfully however the code still broke before finishing.
That's why I thought my problem must have been the code not terminating 
correctly after it ran the last sample (case). 
I don't think you could make this anymore obvious though, I simply didn't 
get it

I couldn't just let it go and luckily was able to solve the problem in my 
code when I tried again a couple of days later.
Thanks for your kind offer though Paul!

Best,
Nic

Paul Smith schrieb am Mittwoch, 7. April 2021 um 02:15:30 UTC+2:

> If you posted your code here we could maybe help find the runtime error
>
> Perhaps the sample used small numbers, and the first test set used larger 
> numbers, and you used a data type that was too small?
>
> On Tue, 6 Apr 2021 at 21:25, 'Pablo Heiber' via Google Code Jam <
> [email protected]> wrote:
>
>> Hi Nic,
>>
>> What you are looking at probably means that your test passed the samples 
>> but got a runtime error when running on real data on Test Set 1.  For 
>> non-interactive problems, your code is ran against the samples, then the 
>> Test Set 1 data, then Test Set 2, data, etc. We never return two different 
>> errors for the same set of the data, if you have a runtime error after you 
>> finish outputting things, you will just get a runtime error overall. Your 
>> program needs to finish correctly (without runtime errors and within the 
>> resource limits) for us to even judge your output.
>>
>> Best,
>> Pablo
>>
>> On Tue, Apr 6, 2021 at 1:16 PM Nic Moetsch <[email protected]> wrote:
>>
>>> Hello all,
>>>
>>> I just finished the Code Jam qualification round. 
>>> I didn't manage to get the Reversesort Engeneering question correct, 
>>> everytime I submitted, it returned *Samples: passed* however also a 
>>> *runtime 
>>> error*.
>>>
>>> This combination feedback really threw me off and since the Google team 
>>> doesn't help with debugging, they didn't really answer my question via 
>>> email. It'd be great if someone could try to explain to me what this 
>>> combination of feedbacks means.
>>>
>>> My guess is that the code always failed on the last test case i.e. 
>>> SamplesPassed = True after all samples were read and it failed on the last 
>>> iteration, however since the first test set only consisted of lists size 2 
>>> to 7 I'd be suprised if the only edge case happened in the last test case.
>>>
>>> I used Python 3.7 if that makes a difference.
>>>
>>> Thanks a lot in advance
>>> Nic
>>>
>>> -- 
>>> -- You received this message because you are subscribed to the Google 
>>> Groups Code Jam group. To post to this group, send email to 
>>> [email protected]. To unsubscribe from this group, send email 
>>> to [email protected]. For more options, visit this group 
>>> at https://groups.google.com/d/forum/google-code?hl=en
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Code Jam" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-code/dc58378f-1ad1-4919-991c-fe438ad71cedn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/google-code/dc58378f-1ad1-4919-991c-fe438ad71cedn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> -- You received this message because you are subscribed to the Google 
>> Groups Code Jam group. To post to this group, send email to 
>> [email protected]. To unsubscribe from this group, send email to 
>> [email protected]. For more options, visit this group at 
>> https://groups.google.com/d/forum/google-code?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Code Jam" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-code/CANa5jcDmYbh66bT8-5BiPfGYCMhX8Q5bJEGPX8uEERzTveY-pA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/google-code/CANa5jcDmYbh66bT8-5BiPfGYCMhX8Q5bJEGPX8uEERzTveY-pA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> -- 
> Paul Smith
>
> [email protected]
>

-- 
-- You received this message because you are subscribed to the Google Groups 
Code Jam group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email to 
[email protected]. For more options, visit this group at 
https://groups.google.com/d/forum/google-code?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/fda36f88-3f77-4951-9ae6-80d610b9f02an%40googlegroups.com.

Reply via email to