World-writable memory on Samsung Android phones
Posted Dec 18, 2012 18:17 UTC (Tue) by
nix (subscriber, #2304)
In reply to:
World-writable memory on Samsung Android phones by khim
Parent article:
World-writable memory on Samsung Android phones
This one phrase tells me that you have very small experience hiring candidates. Most candidates who come to the interview are totally, utterly incompetent. About 4 out of 5 if not 9 out of 10. If you'll just reject, say, ⅔ of candidates randomly — you'll filter out "most of the lemons".
The question is not hot how to "filter out lemons" but how to find out someone who'll be competent enough to rely on.
I assumed that it was bleeding obvious that I wanted to keep as many non-lemons as possible. Otherwise, you could filter out 100% of the lemons by just rejecting everyone, or better yet saving a lot of money and never starting the hiring process at all.
"reverse words in a string without using additional memory"
And here you see how vague questions can cause trouble. I spent some seconds thinking on that one before realising that you probably did not mean what you said, but rather 'without explicitly (at the bytecode level or above) mutating storage that scales as the length of the String' (since you probably can't avoid *all* object storage mutation without writing your own javac). The downside of this description is that it will confuse the heck out of most people :( but without it...
... it is easy to reverse words in a String of known length in Java without allocating memory during the reversal process: ensure that you have a big enough StringBuffer available first, as working space (a good move for performance reasons anyway). It is possible to reverse words in a string of known length in Java without allocating more bytes of String than you had allocated at the start: make sure you lose all references to the original String and GC before making the String you return in: sometimes you need to do this if your String is very large. It is impossible to do anything in Java without the possibility that the VM will choose to allocate additional memory on the OS or C library level.
Good candidate will find acceptable place to work anyway
Yeah, but only once he finds a place that isn't using such a scheme to rank candidates.
(
Log in to post comments)