It always says for input - , 3
output expected is , and output of the code is , thus wrong.
But that cannot be, cause I tested with the input, output is consistent.
Code is in C++.
Please provide an example output.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.