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 < divyanshsrivastava...@gmail.com> 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 google-code+unsubscr...@googlegroups.com. > 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 google-code+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-code/CAGpNOi%3DdjQdW4E5Z%2BochtYjAgNGBe3q4XNxqau4fa_y4r61VHQ%40mail.gmail.com.