题目原文:
Given a set of n integers S = {0,1,…,N-1}and a sequence of requests of the following form:
- Remove x from S
- Find the successor of x: the smallest y in S such thaty>=x
design a data type so that all operations(except construction<
题目原文:
Given a set of n integers S = {0,1,…,N-1}and a sequence of requests of the following form:
design a data type so that all operations(except construction<