In a circular queue with capacity n ,assume that only n-1 elements can be stored at most. the front points to the previous position of the first element of the queue and the rear points to the last element of the queue. Then the queue's full condition is front = rear.
The special matrix after compressed storage can be accessed randomly
Data storage structure can be divided into sequential structure and linked structure
In any case, quick sorting can get the result as quickly as possible.