Solution 1
t-complexity: $O(n)$
s-complexity: $O(1)$
use fast-slow pointers find median node
then reverse second-half list
compare two halves
Last updated
t-complexity: $O(n)$
s-complexity: $O(1)$
use fast-slow pointers find median node
then reverse second-half list
compare two halves
Last updated