Hi,
In an interview scenario, is it okay to mess up your algorithm a couple of times before finally getting it right, or is that going to be viewed negatively?
For example I was working on https://leetcode.com/problems/first-missing-positive/ and the first time I submitted it I forgot to account for zero. The second time I forgot to account for duplicate numbers. The third time, my success condition was slightly wrong. The fourth time, my code passed.