I got asked how to design file storage, like get and write data
For the phone screen? 😳
Yeah. I had to write 2 functions
leetcode medium
it's always the same question: https://leetcode.com/problems/find-duplicate-file-in-system/ then they'll ask you how to optimize it. expected answer is that you compare file sizes first, before calculating file hash to find duplicate
i can attest
Yes, it was a similar-ish question. Same follow ups.
Pretty standard from my experience. Leetcode medium