Facebook | Phone | HTML Snippet
Anonymous User
4086
Nov 26, 2019
Nov 28, 2019

Just met the question in my last Friday's interview. Seems like the variation of LC591, a hard one. The question asked to return the valid first N chars, like if N = 30, it is shown in the snapshot, if N is 2, none is valid, so return "". If N is 7, return < p></ p>. Each char counts for 1.
I do not manage to solve it in the interview (performed well in the first round), so I got an additional interview. Does anyone know how to solve it?
Comments (13)


