As said in the title i need to define a datastructure that takes only O(1) time for insertion deletion and getMIn time.... NO SPACE CONSTRAINTS.....
我已经对SO进行了同样的搜索,所有发现都是在O(1)时间插入和删除。 i 看到前一个员额充 st了他们所说的洗衣......
with my analysis for getMIn in O(1) time we can use heap datastructure
for insertion and deletion in O(1) time we have stack...
so inorder to achieve my goal i think i need to tweak around heapdatastructure and stack... How will i add hashing technique to this situation ...
如果说用 has,那么我的过去职能是什么样子? 那么,我们会想如何使局势在洗 the方面发生转变。