Any idea why the Runtime complexity is too high for the right solution when compared with the left?

While solving this problem, i faced this challenge.

Left took 1 ms where as right took 4 ms.

Highly appreciate your help here.

image

Comments (1)