Блог пользователя tirtha_raj_1

Автор tirtha_raj_1, история, 12 месяцев назад, По-английски

So, recently in my college placement interview, my interviewer asked me about the internal working of an unordered map. I explained him all I knew. In a follow up he then asked me how can we reduce the worst-case search or insert time complexity from O(N) to O(LogN). I did not have a convincing answer for him.

At the end of the interview, he asked what if we used a balanced BST in place of a linked list for chaining in a bucket with the same index. Thinking about it I don't find any flaws in this idea. Then why don't we use this idea to implement an unordered map or am I missing something guys?

Полный текст и комментарии »

  • Проголосовать: нравится
  • +19
  • Проголосовать: не нравится

Автор tirtha_raj_1, 3 года назад, По-английски

Hello Everyone, So today I received a message stating my submission 154312137 for the problem 1669C coincides with my own solution for 154313380 for the problem 1669C. Actually, since there was a very large queue I submitted my solution twice , once from the codeforces main site and then from m1.codeforces site.  MikeMirzayanov Please look into the matter.

Полный текст и комментарии »

  • Проголосовать: нравится
  • +37
  • Проголосовать: не нравится