Cockroach Labs | MTS | Rejected

Anonymous User
606
Sep 28, 2026
Oct 31, 2026

Hello Everyone,

Just went through loop of Cockroach Labs.

There were two rounds :

Round 1 (DSA) : Question is exactly : https://leetcode.com/problems/time-based-key-value-store

I started with brute force unordered_map<int,unordered_map<int,int>> , with put O(1) and get O(N). Then I optimized it to unordered_map<int, vector<pair<int,int>>>. I only made one mistake while implementing i.e I had used lower_bound on timestamp instead of timestamp + 1 but I did conveyed my Idea that I'll be using Binary Search to find closes option. I was short on time so I had implemented it like that and ran out of time before correcting it.

Round 2 : This was choose your own design interview. So, I had discussed about one of the project which I was owning end to end in previous company.

Round 3 : VP Round. It was typical behavioral interview with values and STAR tasks. I was also asked why Cockroach Labs, what's you plan for next 5 years and so on.

I was ghosted for weeks.

Got rejection call with panel deciding to move with other candidate and to trtry after 3 months. Felt so bad, I was laid off in July end and I'm still struggling with job search.

Anyways, I hope this help others in future.

Keep grinding !

Comments (3)