Do you modularize your code in technical interviews?
Feb 10, 2021
In technical interviews do you write helper functions? I heard from the author of CTCI that you should
It helps make it slightly more readable. But doesn’t it make things harder to change if you have to change the signature or return type?
#ctci #interview #faang #facebook #snap #Google #Amazon
comments
Write your helper function last. If you have written a helper function already and it needs a new signature then write a new function. Of course you can ask interviewer if he wants to see helper function implementation