LOGGER RATE LIMITER | LEETCODE # 359 | PYTHON SOLUTION
Вставка
- Опубліковано 9 лис 2024
- In this video we are going to be solving an Easy Google interview question: Logger Rate Limiter (Leetcode # 359).
This question is really simple and is going to test whether you know how to use a dictionary. Pretty much that's all you need to know for this one, some simple dictionary key look ups.
They usually dont ask just for simple boolean, might have multiple messages which needs to be parsed and displayed and probably not show messages if received in 10 secs etc, with multithreaded or huge data stream constraints
I did this question recently at Deliveroo, and a similar solution was implemented using Ruby; however, only 6 out of 15 tests passed. Tried to log & debug the issues, but I couldn't see the problem and the time elapsed
I think
T.C = O(L)
S.C = O(N * L)
where L = average message length
We are storing strings not int or long.
Thanks
Plz make some videos on backtracking questions.....
Any question in particular you’d like to see? Let me know and then subscribe to the channel so you don’t miss the upload
@@crackfaang u can start with permutation, combination sum etc...
ofc you dont know why google asks this questions, you dont work there. Jeje