Consider the following testcase:
The expected answer given by the testcase is
13, but the correct answer is 16.
I wonder whether it is due to an erroneous testcase or it was my misinterpretation of the instruction.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.