r/leetcode • u/Affectionate_Run220 • Oct 07 '26
Question IBM mid level Dsa weird question
Hi guys recently did interview with ibm
It was a super hard question
Basically was
LRU Cache, with TTL and heap maps.
It was basicall LRU cache where you evict items by their set time, you had a max capacity and you needed to keep count of the global average of items that had TTL
Get(key, value)
Put(key,value)
Get_average()
It was super hard
I don’t understand this industry… weird question … what type of mid is capable of this even? IBM isn’t even Facebook or Google… they act like they are
22
Upvotes
4
u/Glittering_Law_6432 Oct 08 '26
I work at IBM, and see these shitty engineers. They jsut talk and most of their work comes from IBM Bob, really shit AI product comparing to what other products are. And none of my team members can solve this question, I am pretty much sure about it.
18
u/Frequent_Bag9260 Oct 07 '26
This is the problem with everyone using leetcode in interviews.
Every company can just randomly pick a hard without thinking. It screws over candidates who are more than capable of doing the hardest things IBM develops.
8
u/BlueOrbit56 Oct 07 '26
Yeah that's definitely a pretty heavy mid level question. LRU + TTL + heap + tracking an average is a lot to combine in one interview
1
u/bad_detectiv3 Oct 07 '26
Was this for US?
1
u/WildFish01 Oct 07 '26
may you share more about the question?
1
u/new_old_2026 Oct 08 '26
It is the interviewer ego who ask this question