Failing the First-Round ByteDance Interview

After a bit of small talk, we got straight into computer networking. The interviewer followed up on whatever I happened to mention:

  • Differences between TCP and UDP and when to use each
  • Types of DNS protocols
  • Differences between HTTP and HTTPS
  • What happens during an HTTP request
  • Differences between POST and GET

Next we discussed my projects and the technologies I had used. I walked through what happened between reading some JSON and returning a result.

Then came database partitioning: if a table grows so large that performance suffers, how do you split it?

  • How would you split a table with many attributes?
  • How would you split a table with many records?

The coding question was LeetCode 31, exactly as written. I struggled for ages. The interviewer gave me hint after hint and helped me improve the solution step by step; even then, it took half an hour and the code was ugly. He could see I wasn’t comfortable with algorithms and told me to practice more LeetCode. At that point I knew I was done for.

He gave me an easier question to finish on: did I know quicksort? I said I’d seen it but hadn’t learned it. He asked about its time complexity and where the log comes from, and that was the end of the interview.

His parting advice was to do more LeetCode, get better at handling edge cases, and build more projects.

Waaaah, I’m still so bad at this.