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 Answer

added 6 characters in body
Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61

R, 72(削除) 72 (削除ここまで) 71 bytes

function(k,s)all(t(sapply(k,function(x)match(s,x,0)))<=<(lengths(k)+1+2)/2)

Try it online! Try it online!

R, 72 bytes

function(k,s)all(t(sapply(k,function(x)match(s,x,0)))<=(lengths(k)+1)/2)

Try it online!

R, (削除) 72 (削除ここまで) 71 bytes

function(k,s)all(t(sapply(k,function(x)match(s,x,0)))<(lengths(k)+2)/2)

Try it online!

Source Link
Dominic van Essen
  • 37.2k
  • 2
  • 24
  • 61

R, 72 bytes

function(k,s)all(t(sapply(k,function(x)match(s,x,0)))<=(lengths(k)+1)/2)

Try it online!

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