Technical interviews and tests are stressful, even mock ones. Good work!
Hopefully a helpful tip... Try and use as less 'state' as possible in your algorithm (and code in general). State makes code complicated and can introduce more defects. The less you have to think about the better. Try and do this again with as few variables as possible.
Technical interviews and tests are stressful, even mock ones. Good work!
Hopefully a helpful tip... Try and use as less 'state' as possible in your algorithm (and code in general). State makes code complicated and can introduce more defects. The less you have to think about the better. Try and do this again with as few variables as possible.
Thanks so much for the advice! I definitely intend to go back and refactor the code as I practice and learn more.