I find myself to submit multiple times (avg 3 times) to get an accepted solution that covers all edge cases.
In a real interview would it be bad to do this?