As reported: Tower Research Core Software Engineer intern, round 1 (2025), after the coding question: is vector memory contiguous — why and how; pass-by-value vs pass-by-reference; threads and cache types (L1, L2, L3) — why L1 is fast, its size, and why it is not made larger; database indexes — why not use many indexes; what partitioning is; what sharding is.
- Is the memory of a
std::vectorcontiguous? Why, and how does it grow? - Pass-by-value vs pass-by-reference (in C++).
- Threads and CPU caches: what are L1, L2 and L3? Why is L1 so fast, how big is it, and why isn't it made larger?
- Database indexes: why not just index every column?
- What is partitioning? What is sharding?