Skip to main content
2 of 7
deleted 147 characters in body
pxeger
  • 25.3k
  • 4
  • 59
  • 146

Jelly, 6 bytes

IḊw@=1

Attempt This Online!

I        differences between consecutive elements
 Ḋ       remove the first item
  w@=1   check if this is a prefix of the input
pxeger
  • 25.3k
  • 4
  • 59
  • 146