The importance of edge cases
Oct 1, 2021
Most importantly, if is just in cases where something is 0 and or 1 it is only two cases and honestly, you should just build these odd cases out rather than dealing with them all in one code. Just build those first.
Also, try to use typescript on leetcode. It will help.