starman

i split my head open today trying to forget the way forgiveness wrung the life out of me a cloth twisted to a point of no return, what it used to be writhing in my hands wicked but alive i remember…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




POJ3125 PrinterQueue

You are given a queue, if the front element is the largest, then pop it, otherwise move it to the end of the queue.

I tried both containers and compared their running time.

Use list: 676K, 63MS

Replace list with deque: 676K, 32MS. The algorithm has the same time complexity using either container for this problem.

Add a comment

Related posts:

This is why everyone needs a mentor

I was at the Pesto office and the co-founder of Pesto — Ayush, happen to ask me some questions to get feedback about the program. I was trying to give him as honest of the possible feedback. Then…

Use PHP to set random ID in HTML tags

For a WordPress plugin I needed to set the “id” attribute to HTML template (when the “id” is not already set) and I extrapolate the code that can be used in another project. In order to do that, I…

Rewiew On FIFA 18 Demo

In what comes as an entire and utter surprise, Electronic Arts has announced that FIFA 18 can be released on September 29, 2017. Cue sigh of relief. EA Sports most awaited offering, FIFA 18 is set to…