You are right, I was not aware of it - damn... Thank you! Am Mittwoch, 8. April 2020 17:53:01 UTC+2 schrieb Samarth Pardhi: > > You may not have considered the order of assigning J or C. Its order > should not be the same as the order of sorted starttime of activity. It > should be in the order of input activities > > On Wednesday, April 8, 2020 at 2:29:31 AM UTC+5:30, Reetika Aggarwal wrote: >> >> I faced similar issue, code was passing all given tests but getting wrong >> answer on submission. >> >> Logic: >> I tried to sort starttime of activity >> Give first activity to J >> Then save it's endtime >> Look for next activity >> If next activity start time is greater than endtime of j, assign to C >> And mark end time for C >> >> Like wise iterate through all activities assigning j and c >> Then return using the sequence mentioned. >> >> On Tue, Apr 7, 2020, 10:25 PM divyansh srivastava < >> [email protected]> wrote: >> >>> Could you please tell me what was ur logic because of my code runs all >>> test cases. >>> >>> On Tuesday, April 7, 2020 at 6:22:28 AM UTC+5:30, mbauschke wrote: >>>> >>>> Hi there, >>>> >>>> >>>> >>>> I’m trying to submit my solution for Problem 3: „Parenting Partnering >>>> Returns“ but it’s getting me always a runtime exception. This is strange >>>> because my Test attempts are always successful. Has anyone ever had a >>>> problem like this before and knows what it could be? >>>> >>> -- >>> 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/deab67c5-de4a-4c0c-9ebd-0c232d760564%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/google-code/deab67c5-de4a-4c0c-9ebd-0c232d760564%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>
-- 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/fec30882-d15c-44a0-9c84-c93434d786b5%40googlegroups.com.
