Skip to main content
deleted 291 characters in body
Source Link

Jelly, 21 14 1212 10 bytes

“pde”e€Ḅo4<4“dʋ»e€µṪ<Ẹ

Try it online!Try it online!

Takes input in lowercase. Adaption of Neil's method

Golfs:

How it works

“dʋ»e€µṪ<Ẹ - Main link. Takes S on the left
“dʋ»       - Compressed string; Yield "dep"
     €     - For each character in "dep":
    e      -   Is it in S?
      µ    - Use this triplet as the new argument
       Ṫ   - Take the final element (1 if p is present, else 0)
         Ẹ - Are either "d" or "e" in S?
        <  - The tail is 0 and either "d" or "e" are in S

Jelly, 21 14 12 bytes

“pde”e€Ḅo4<4

Try it online!

Takes input in lowercase. Adaption of Neil's method

Golfs:

Jelly, 21 14 12 10 bytes

“dʋ»e€µṪ<Ẹ

Try it online!

Takes input in lowercase. Adaption of Neil's method

Golfs:

How it works

“dʋ»e€µṪ<Ẹ - Main link. Takes S on the left
“dʋ»       - Compressed string; Yield "dep"
     €     - For each character in "dep":
    e      -   Is it in S?
      µ    - Use this triplet as the new argument
       Ṫ   - Take the final element (1 if p is present, else 0)
         Ẹ - Are either "d" or "e" in S?
        <  - The tail is 0 and either "d" or "e" are in S
deleted 291 characters in body
Source Link

Jelly, 31 21 1614 1412 bytes

1,4ịe€“pcmw”ẸC“pde”e€Ḅo4<4

Try it online!Try it online!

Takes input in lowercase. Inspired byAdaption of coltim's methodNeil's method

Golfs:

How it works

1,4ịe€“pcmw”ẸC - Main link. Takes S on the left
1,4            - Yield [1, 4]
   ị           - Get the characters of S at those indexes; Call them C
      “pcmw”   - Yield "pcmw"
     €         - For each character in C:
    e          -   Is it in "pcmw"?
            Ẹ  - Any true?
             C - Switch truthy to falsey and falsey to truthy

Jelly, 31 21 16 14 bytes

1,4ịe€“pcmw”ẸC

Try it online!

Takes input in lowercase. Inspired by coltim's method

Golfs:

  • -10 bytes by changing the compressed string
  • -5 bytes by adapting coltim's method

How it works

1,4ịe€“pcmw”ẸC - Main link. Takes S on the left
1,4            - Yield [1, 4]
   ị           - Get the characters of S at those indexes; Call them C
      “pcmw”   - Yield "pcmw"
     €         - For each character in C:
    e          -   Is it in "pcmw"?
            Ẹ  - Any true?
             C - Switch truthy to falsey and falsey to truthy

Jelly, 21 14 12 bytes

“pde”e€Ḅo4<4

Try it online!

Takes input in lowercase. Adaption of Neil's method

Golfs:

deleted 2 characters in body
Source Link

Jelly, 31 21 16 14 bytes

1,4ịe€“pcmw”ẸC

Try it online!

Takes input in lowercase. Inspired by coltim's method

Golfs:

  • -10 bytes by changing the compressed string
  • -5 bytes by adapting coltim's method

How it works

1,4ịe€“pcmw”ẸC - Main link. Takes S on the left
1,4            - Yield [1, 4]
   ị           - Get the characters of S at those indexes; Call them C
      “pcmw”   - Yield "pcmw"
     €         - For each character in C:
    e          -   Is it in "pcmw"?
            Ẹ  - Any true?
             C - Switch truthy to falsey and falsey to truthy

Jelly, 14 bytes

1,4ịe€“pcmw”ẸC

Try it online!

Jelly, 31 21 16 14 bytes

1,4ịe€“pcmw”ẸC

Try it online!

Takes input in lowercase. Inspired by coltim's method

Golfs:

  • -10 bytes by changing the compressed string
  • -5 bytes by adapting coltim's method

How it works

1,4ịe€“pcmw”ẸC - Main link. Takes S on the left
1,4            - Yield [1, 4]
   ị           - Get the characters of S at those indexes; Call them C
      “pcmw”   - Yield "pcmw"
     €         - For each character in C:
    e          -   Is it in "pcmw"?
            Ẹ  - Any true?
             C - Switch truthy to falsey and falsey to truthy
deleted 2 characters in body
Source Link
Loading
deleted 612 characters in body
Source Link
Loading
added 280 characters in body
Source Link
Loading
deleted 88 characters in body
Source Link
Loading
Source Link
Loading