Skip to main content
added 259 characters in body
Source Link
naffetS
  • 12.8k
  • 2
  • 20
  • 53

Vyxal r, 6 bytes

T%UL⁰>

Try it Online!

Port of Jelly answer.

How?

T%UL⁰>
T      # Truthy (water) indices of the (implicit) first input 
 %     # Modulo each by the (implicit) second input (the stride)
  U    # Uniquify
   L   # Length
    ⁰> # Is the second input (the stride) greater than this?

Vyxal r, 6 bytes

T%UL⁰>

Try it Online!

Port of Jelly answer.

Vyxal r, 6 bytes

T%UL⁰>

Try it Online!

Port of Jelly answer.

How?

T%UL⁰>
T      # Truthy (water) indices of the (implicit) first input 
 %     # Modulo each by the (implicit) second input (the stride)
  U    # Uniquify
   L   # Length
    ⁰> # Is the second input (the stride) greater than this?
Source Link
naffetS
  • 12.8k
  • 2
  • 20
  • 53

Vyxal r, 6 bytes

T%UL⁰>

Try it Online!

Port of Jelly answer.