Jump to content

Nimber arithmetic: Difference between revisions

m
Minor edit to Java code
(Added Java solution)
m (Minor edit to Java code)
Line 397:
public static int nimProduct(int x, int y) {
if (x < 2 || y < 2)
return x * y;
int h = hpo2(x);
if (x > h)
1,777

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.