DEV Community

Discussion on: The Palindrome Algorithm: Working Through A Mock Technical Interview

Collapse
 
jamesmaskell profile image
jamesmaskell • Edited

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.

Collapse
 
taylorsieling profile image
Taylor Sieling

Thanks so much for the advice! I definitely intend to go back and refactor the code as I practice and learn more.