Skip to main content
deleted 2 characters in body
Source Link
pajonk
  • 18.3k
  • 3
  • 26
  • 74

R, 3635 bytes

function(W,u=unique(W))any(u-seq(uu<-unique(W))-u)

Try it online!Try it online!

Takes input as a vector of integers from 1 to 26. Outputs FALSE for truthy and TRUE for falsey.

R, 36 bytes

function(W,u=unique(W))any(u-seq(u))

Try it online!

Takes input as a vector of integers from 1 to 26. Outputs FALSE for truthy and TRUE for falsey.

R, 35 bytes

function(W)any(seq(u<-unique(W))-u)

Try it online!

Takes input as a vector of integers from 1 to 26. Outputs FALSE for truthy and TRUE for falsey.

Source Link
pajonk
  • 18.3k
  • 3
  • 26
  • 74

R, 36 bytes

function(W,u=unique(W))any(u-seq(u))

Try it online!

Takes input as a vector of integers from 1 to 26. Outputs FALSE for truthy and TRUE for falsey.