World-writable memory on Samsung Android phones
Posted Dec 18, 2012 20:07 UTC (Tue) by khim
In reply to: World-writable memory on Samsung Android phones
Parent article: World-writable memory on Samsung Android phones
I assumed that it was bleeding obvious that I wanted to keep as many non-lemons as possible.
Why would I want to do this?
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.
Now we swing to the other direction — which is equally pointless. You don't need billion employees, you just need a few of them. May be ten, may be thousand, may be even million (but I would like to see the project which needs million of software engineers), but much less then there are good candidates. As long as your process gives you enough—it's fine and you can try to optimize it further. If it's not gives you enough—then you are in trouble.
"reverse words in a string without using additional memory"
And here you see how vague questions can cause trouble.
You see, the goal of the whole process is to hire someone for your team. If the candidate is some genius but can not work with real people (who often say things vaguely or sometimes even wrong) then you don't want to hire him.
... 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.
This is good answer. It will show to me that the candidate has good working knowledge of Java but does not know computer science terminology (or purposefully ignores it). This basically means that he's the aforementioned genius (who can do amazing things but will have trouble communicating within a team). I will probably want to see the code anyway and then try to understand if the chasm between our terminology viewpoints can ever be bridged.
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.
Wrong. It's impossible if you use immutable classes like String but quite possible if you'll use char instead. If you want to do such transition or not depends on the task in question.
One place where you need to understand this difference is if you'll want to try to run your program on a JavaCard which has no GC and no free (yes, Java without GC! endorsed by Sun! and they talk about fragmentation after that? gosh).
Yeah, but only once he finds a place that isn't using such a scheme to rank candidates.
It's not your problem. If all the places will start using such scheme then it'll just mean that ability to pass such interviews are now part of what the "good candidate" definition it.
to post comments)