I'm not sure that would work quite right as it isn't gathering duplicates from throughout the stack, it is only gathering consecutive duplicates.
Type: Posts; User: Parranoia
I'm not sure that would work quite right as it isn't gathering duplicates from throughout the stack, it is only gathering consecutive duplicates.
I don't think you need to make this problem so complicated. Break it down into a few simple rules.
Read element off stack and remember it
Keep popping until this number is different and count...