Author | Message | Time |
---|---|---|
Topaz | Is there a way to use XOR, but operate on n values? | October 19, 2006, 11:02 PM |
Myndfyr | [code] result := 0 for i = 0 to n result ^= values[i] [/code] Pseudocode. | October 19, 2006, 11:11 PM |
Grok | [quote author=MyndFyre[vL] link=topic=15898.msg160024#msg160024 date=1161299460] [code] result := 0 for i = 0 to n result ^= values[i] [/code] Pseudocode. [/quote] That would operate on n+1 values. Pseudojab. =p | October 27, 2006, 3:20 PM |