4 ms·
Yea 3 hours is way too long, this is a 30 min task tops.
by zepolen 3y ago
Yea 3 hours is way too long, this is a 30 min task tops.
- isbvhodnvemrwvn 3y agoThe OP, who had already done the task before, took more than an hour to complete it.
- deleted 3y ago[deleted]
- zepolen 3y agoOk, that doesn't bode well for the op. Note, I haven't used C in 15 years, have never looked at memcached code and in fact the last time I used memcached was before redis even existed. It took me ~26 mins which included reading the article, googling the memcached repo, downloading all dependencies, compiling a first build, grepping for references to incr and adding mult with support for negative arguments, refactoring the guts of incr into two functions to support the changes, compiling, fixing a few compiler bugs then testing, given a few more minutes I'd probably be able to get it PR ready with a full test suite.