Search:

Type: Posts; User: Parranoia

Search: Search took 0.07 seconds.

  1. Replies
    4
    Views
    1,855

    Re: Counting duplicates in a Stack

    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.
  2. Replies
    4
    Views
    1,855

    Re: Counting duplicates in a Stack

    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...
Results 1 to 2 of 2