5 ms·
The problem is simpler than all that. There already exists a function that does the exact thing the question asks for, handling all the atomicity complexity.
by hoten 5y ago
The problem is simpler than all that.
There already exists a function that does the exact thing the question asks for, handling all the atomicity complexity.
What this comes down to is can the candidate: figure out how to build the project, grep to existing implementation and copy, paste, change a plus to an asterisk. And also, can they articulate the work-to-be-done this simply.
I've never seen the first item in that list tested in an interview and .. I don't hate the idea.
- mikeryan 5y agoWhat this comes down to is can the candidate: figure out how to build the project, grep to existing implementation and copy, paste, change a plus to an asterisk. And also, can they articulate the work-to-be-done this simply. While that’s the gist of it, it hardly seems that’s quite enough from the author’s solution, nor should it be enough for an interviewer. The question isn’t how to write, or copy paste a function but how to add the command interface as well which, if one doesn’t know memcached, can be more complex then the function itself and isn’t covered by this trite an answer. https://quuxplusone.github.io/blog/2022/01/07/memcached-interview-solution/ https://quuxplusone.github.io/blog/2022/01/07/memcached-inte...
- astee 5y agogrep for "incr" and add "mult" below it ¯\_(ツ)_/¯