Recently I am studying some algorithms just in case that when getting interviewed, I am gonna have to solve some algorithms in front of other people.
My question is : do I have to memorize all the different REGEX combo? Will this be tested?
Cos in my point of view, I think the interviewer should provide the REGEX part of the code… or we should memorize it.
For example, if the interviewer wants me to “title case a sentence”, I knew that I have to toLowerCase() everything. then use replace method, then use regex to find all the 1st letters, then add in another function where they will be transformed into uppercase letters. But I do not know the exact combo I should use in regex.
Do I still get a pass?