Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Searching for a function."

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:1+5 =



Original Message (ID '272048') By Bill Simpson:
This is stunningly slower than the previous iterative solution when given a list of 10^4 elements, but does show that Count can be forced to solve your problem. Count[Partition[numbers//.{x___,y_,y_,z___} -> {x,y,z}, 3, 1],{x_,y_,z_}/;(xz || x>y&&y