we can't sort the list
maybe we should create a data structure to dynamically handle the data one by one. The structure should has the append() pop() and get() function, and has the both feature of Stack and Queue to check whether the incoming data is a consecutive data in the list.
we can't sort the list
maybe we should create a data structure to dynamically handle the data one by one. The structure should has the append() pop() and get() function, and has the both feature of Stack and Queue to check whether the incoming data is a consecutive data in the list.