Hello plesse let me known one good book for dynamic programing Regards Samuel
On Tue, 19 Apr 2022, 10:12 Samuel Jawahar, <[email protected]> wrote: > Thanks a lot sir for spending valuable time > I have done wrong one if condition that why it was failed > I corrected in practice mode it worked > > https://codingcompetitions.withgoogle.com/codejam/round/0000000000876ff1/0000000000a45ef7 > > Regards > > On Mon, 18 Apr 2022, 20:32 Katalin Brányiné Sulák, < > [email protected]> wrote: > >> Hi Samuel, >> >> I checked the case you attached but I couldn't really follow your >> notation. Either "participated" is wrong (fun value of node-3 is not the >> given value, it's on node-1), (and)/or your solution is not on starting all >> leaf nodes in a specific order. >> >> My output for this test case is: >> 1 >> 9 >> 975975168 730620437 185934326 235968776 950919801 889728167 159021761 >> 808742231 730369172 >> 0 0 1 2 1 1 4 3 3 >> Case #1: 4355985804 >> >> Follow this on paper and check the differences: >> node 9: yields 975975168, nodes 1,3 are eliminated >> node 7: yields 730620437, nodes 2,4 are eliminated >> node 5: yields 950919801 (already root) >> node 8: yields 808742231 (already root) >> node 6: yields 889728167 (already root) >> >> Hope this helps. >> >> Kata >> >> Samuel Jawahar <[email protected]> ezt írta (időpont: 2022. ápr. 11., >> H, 2:29): >> >>> Hello plesse find the attached and let me know what you think >>> My solution is correct or not >>> For chain reaction problem >>> Regards >>> Samuel >>> >>> -- >>> -- 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/CAH5vfnOcDCzZ0HCnuFZk_-xB4D%2B3pRm81-BkwLih1ce%2BQhWePA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/google-code/CAH5vfnOcDCzZ0HCnuFZk_-xB4D%2B3pRm81-BkwLih1ce%2BQhWePA%40mail.gmail.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/CAPOU4JOJ24%3DaO4eyMnv5qC7E_qzSDfg9EGbCXv-EjjscEBAeHg%40mail.gmail.com >> <https://groups.google.com/d/msgid/google-code/CAPOU4JOJ24%3DaO4eyMnv5qC7E_qzSDfg9EGbCXv-EjjscEBAeHg%40mail.gmail.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/CAH5vfnO7Ag8jV6KfTO1R1xx-RT%3DuV7QBO%2B7g4w2wwvU6WYa05Q%40mail.gmail.com.
