3 ms·
> What’s the fastest way to convert a string to number? And other unspecified behavior. This really says nothing about the contents of the string. Is it decima
by marginalia_nu 5y ago
> What’s the fastest way to convert a string to number? And other unspecified behavior.
This really says nothing about the contents of the string. Is it decimal, then maybe they want atoi. They could be looking for a hash of the string as well. Or the levenshtein distance to the word "walrus". Or really, any number of functions that convert a string to a number.
- deleted 5y ago[deleted]
- google234123 5y agomore senior the interview candidate should be able to navigate uncertainty like that and nail down exactly what the interviewer wants imo