Skip to main content
-2 bytes
Source Link
Jo King
  • 48.1k
  • 6
  • 131
  • 187

Husk, 66 4 bytes

-2 bytes thanks to Razetime!

Von1LgETC2 

Try it online!Try it online!

Hooray for all ASCII solutions! Outputs 0a positive number if the input is doublespeak, otherwise a positive integer. if you want 1 for truthy, 0 for falsey, you can prepend =0 to the codezero.

  g C2 Group theCut inputlist into listschunks of the same adjacent elements2 V Find the index of the firstT element that matches the predicateTranspose  o E Combination of the next twoCheck functions if list has all Lthe same elements The(return length n1 Is oddof (bitwiselist ANDif 1so) 

Husk, 6 bytes

Von1Lg 

Try it online!

Hooray for all ASCII solutions! Outputs 0 if the input is doublespeak, otherwise a positive integer. if you want 1 for truthy, 0 for falsey, you can prepend =0 to the code.

  g Group the input into lists of the same adjacent elements V Find the index of the first element that matches the predicate  o  Combination of the next two functions  L The length n1 Is odd (bitwise AND 1) 

Husk, 6 4 bytes

-2 bytes thanks to Razetime!

ETC2 

Try it online!

Hooray for all ASCII solutions! Outputs a positive number if the input is doublespeak, otherwise zero.

 C2 Cut list into chunks of 2 T Transpose E Check if list has all the same elements (return length of list if so) 
Bounty Awarded with 50 reputation awarded by Zgarb
fixed typo
Source Link
Jo King
  • 48.1k
  • 6
  • 131
  • 187

Husk, 6 bytes

Von1Lg 

Try it online!

Hooray for all ASCII solutions! Outputs 0 if the input is doublespeak, otherwise a positive integer. if you want 1 for truthy, 0 for falsey, yoiyou can prepend =0 to the code.

 g Group the input into lists of the same adjacent elements V Find the index of the first element that matches the predicate o Combination of the next two functions L The length n1  Is odd (bitwise AND 1) 

Husk, 6 bytes

Von1Lg 

Try it online!

Hooray for all ASCII solutions! Outputs 0 if the input is doublespeak, otherwise a positive integer. if you want 1 for truthy, 0 for falsey, yoi can prepend =0 to the code.

 g Group the input into lists of the same adjacent elements V Find the index of the first element that matches the predicate o Combination of the next two functions L The length n1 Is odd (bitwise AND 1) 

Husk, 6 bytes

Von1Lg 

Try it online!

Hooray for all ASCII solutions! Outputs 0 if the input is doublespeak, otherwise a positive integer. if you want 1 for truthy, 0 for falsey, you can prepend =0 to the code.

 g Group the input into lists of the same adjacent elements V Find the index of the first element that matches the predicate o Combination of the next two functions L The length n1  Is odd (bitwise AND 1) 
Source Link
Jo King
  • 48.1k
  • 6
  • 131
  • 187

Husk, 6 bytes

Von1Lg 

Try it online!

Hooray for all ASCII solutions! Outputs 0 if the input is doublespeak, otherwise a positive integer. if you want 1 for truthy, 0 for falsey, yoi can prepend =0 to the code.

 g Group the input into lists of the same adjacent elements V Find the index of the first element that matches the predicate o Combination of the next two functions L The length n1 Is odd (bitwise AND 1)