HF RL Explorer

Task: Implement an Order-Sensitive HashCode for Complex Numbers in C

Task: Implement an Order-Sensitive HashCode for Complex Numbers in C: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a hashcode function for a complex number class in C that properly distinguishes between different orderings of the components. The standard XOR approach…

The task

You need to implement a hashcode function for a complex number class in C# that properly distinguishes between different orderings of the components. The standard XOR approach `a.GetHashCode() ^ b.GetHashCode()` is problematic because it produces the same hashcode for `(a, b)` and `(b, a)`, which is undesirable for…

Part of PrimeIntellect/Terminal-Lego-15k.