News for hackers. Stuff that matters.

asmdsr

Re:Ask HN: What do you eat? on Sunday May 17, 2009 @02:49AM (#613100)
This is what got me through my startup. Don't skimp on step 3.

2 Cans of Whole Tomatoes 1 Can Lentils (or 1/2 cup dry lentils) 1 Large Onion (peeled) 5 Cloves Garlic (peeled 1 Cup Water Salt + Pepper Olive Oil Parmesan

1. Combine in a Large Pot: Tomatoes, Lentils, Whole Onion, Whole Garlic Cloves, Water. 2. Let simmer for about 45 min. When the middle of the Onion “pops” out or is very soft, the soup is ready. 3. Serve in Bowls, then… Drizzle Olive Oil and Sprinkle Parmesan Cheese on each serving. 4. Enjoy!

Re:My toughest job-interview question ever on Wednesday May 13, 2009 @01:20AM (#606559)
"What will you do in the event of hash collisions?" the professor asked.

The interviewer was priming for this particular answer: Keep the buckets in a linked list. Each time you increment a bucket, move it to the front of the list. When you're counting frequencies, this approach will mean that the most frequently occurring keys will be closer to the front of the list.

I know this because I was asked a similar question in an interview with a certain well-known PC software company. I didn't know the answer either, but still got an offer.

I work at Google, and I am quite certain that the (failed) startup experience played a part in getting hired there.