加载中...
分类详情
困难 分类
1206-设计跳表(Design Skiplist)
原文链接: https://leetcode-cn.com/problems/design-skiplist 英文原文Design a Skiplist without using any built-in libraries. A skiplist is a data structure that takes O(log(n)) time to add, erase and search. Comparing with treap and red-black tree which has th…
2021-12-03
1223-掷骰子模拟(Dice Roll Simulation)
原文链接: https://leetcode-cn.com/problems/dice-roll-simulation 英文原文A die simulator generates a random number from 1 to 6 for each roll. You introduced a constraint to the generator such that it cannot roll the number i more than rollMax[i] (1-indexed) c…
2021-12-03