We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
the difference between python2 and python3 in this case is only 20%.
i did perfomance tweaks
(only using one dimension row for history, build up new and then swap, i observed that max function is slower than compare by my own)
and doubled the speed this way.
Now the difference is irrelevant.
i think i might be the only one who solved it with python3
my testcase on my machine:
Common Child
You are viewing a single comment's thread. Return to all comments →
the difference between python2 and python3 in this case is only 20%. i did perfomance tweaks
(only using one dimension row for history, build up new and then swap, i observed that max function is slower than compare by my own)
and doubled the speed this way. Now the difference is irrelevant. i think i might be the only one who solved it with python3 my testcase on my machine:
pypy 3: 0,4 s
python3: 4,7 s
python2: 4,2 s
https://www.hackerrank.com/challenges/common-child/submissions/code/115183048