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

1 of 13
Arnauld
  • 205.5k
  • 21
  • 187
  • 670

JavaScript (ES6), 121 bytes

Expects (N,n,o) and returns 0 for regular, 1 for strange, 3 for wrong.

(N,n,o)=>(g=(m,x="a",y="b",i)=>i^N?g(m,~i+n?y:y=p=y.toUpperCase(),x+y,-~i):!x.slice(o).match(eval(`/^${p}/`+m)))``|g`i`*2

Try it online!

Arnauld
  • 205.5k
  • 21
  • 187
  • 670

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