Descriptions:

RMQ Similar Sequence

HDU - 6305