Anonymous
public text v1 · immutable/*
2 CPU solution
*/
int word; // This node's number, and node count
int number; // Current word number
void init()
{
word = 1;
number = 0; // Speedup the filter a bit
}
void filter()
{
number++; // Advance to next word;
~word = word; // logic not the word to know if we should handle it or not
}