March 25th, 2008
Posted in true tears | 2 Comments »
March 22nd, 2008
I just watched episode 12 and oh my, they sure know how to time an ending. I wouldn’t really call it a “cliffhanger” though, if you know what I mean. Note that you will only get it if you actually watched this episode.
Posted in true tears | No Comments »
March 21st, 2008
Posted in true tears | No Comments »
March 21st, 2008
Posted in true tears | No Comments »
March 20th, 2008
Every time I listen to a track from FFXII, I start wishing I was playing the game right then and there. :/
Posted in Gaming | No Comments »
March 19th, 2008
Posted in Shakugan no SHANA | No Comments »
March 19th, 2008
I got back to my place at Waterloo at around 1800 yesterday. I’ll try to get some writing done later today or later in the week.
Posted in General | No Comments »
March 14th, 2008
I’ll be making a little detour at Seattle tomorrow before going to Santa Clara on Sunday for EclipseCon to visit Jacky and Mark over at Microsoft. If anyone knows of any places I simply have to go, let me know! ;) We will be dropping by Kinokuniya, so you don’t have to tell me about that one.
Posted in General | No Comments »
March 13th, 2008
While I told a few of my friends that I had been rejected by Google, I never publicly announced this fact. I think it’s a little unfair to my readers here, so, well, here you go, I got rejected. ;)
However, as the title implies, the main reason I’m posting up an entry is to share the questions that they posed to me to the wider public. Hopefully, someone somewhere will be able to find these useful. Good luck, whoever you are! :)
Note that these questions were asked in the context of the Java programming language and its standard libraries.
- How would you (unit?) test your networking code?
- What’s the difference between an array and an ArrayList?
- What’s the difference between a HashSet and an ArrayList?
- How would you implement a HashSet?
- How do you write write a good hashCode() function?
- What happens if hashCode() returns the same integer but invoking equals(Object) on the two objects returns false?
- You have a path object like ‘/home/remy/foo/./../bar’, how would you canonicalize it (as in, resolve /. and /.. properly)? So, the end result in this example would be ‘/home/remy/bar’. Can it be done in O(n) time?
- How would you test the above method?
- If an argument shouldn’t be null, should you throw a NullPointerException or an IllegalArgumentException? Note that the interviewer was only asking for my opinion.
- How does a Hashtable / HashMap work? How do they store their data? How fast can you get stuff out of it (with the get(Object) method)?
Posted in Work | No Comments »