HN user

asmdsr

8 karma
Posts0
Comments3
View on HN
No posts found.

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!

"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.