my attempt at solving leetcode 1678: goal parser interpretation [SOLVED]

preview_player
Показать описание
Hi there, my motive behind this video is to be able to solve a leetcode problem utilising the rubber ducky debugging method, but I hope this helps anyone watching and discussions are very welcome in the comments! :

Рекомендации по теме
Комментарии
Автор

Well done dude👍 the "(" and ")" can be checked in 1 if statement with the "and" operator imo, less indentation
>> elif command[i] == "(" and command[i+1] == ")"

Allen-bduu
Автор

What do we think boys, are we getting to round 2 of the interview stage with this performance?

BenLalor
welcome to shbcf.ru