Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

Error: user passed empty tree
p2: /in/driver/recursive.cpp:167: void tree_checkNonEmpty(tree_t): Assertion `0' failed.

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Runtime Error. And the exit code of your program is -6, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

( -1694 1184 1403 )

JOJ Answer

( -1694 1184 1403 )( 222 241 -294 -1146 -1768 )( -1310 -1790 112 -1722 -1193 1043 1745 1938 -165 864 243 -70 507 -765 1390 -1052 -894 1684 1047 29 1386 1831 807 1543 1119 748 -1672 -1686 -1089 867 -1185 -565 -1239 1260 1060 -1628 -1415 -1161 -860 580 1757 -1273 1726 -648 -1998 -1491 -1309 765 1364 1434 -158 1097 -465 1388 413 149 -770 1940 -101 1822 -112 723 1742 789 1834 )