<?php function floorDiff(string $input): int { if ($input === '(') { return 1; } if ($input === ')') { return 1; } } assert(floorDiff('(') === 1); assert(floorDiff(')') === -1);
You have javascript disabled. You will not be able to edit any code.