Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

3 of 5
saved 1 byte
Arnauld
  • 205.5k
  • 21
  • 187
  • 670

JavaScript (ES6), 62 bytes

Returns false for Hadamard or true for non-Hadamard.

m=>m.some((p,i)=>m.some(q=>i--*p.reduce((t,v,x)=>t+v*q[x],0)))

Try it online!

Arnauld
  • 205.5k
  • 21
  • 187
  • 670

AltStyle によって変換されたページ (->オリジナル) /