Skip to main content
added 97 characters in body
Source Link
DialFrost
  • 5.1k
  • 2
  • 13
  • 54

Vyxal, 95 bytes

'?O1=;L0=vO2J≈

Try it Online!Try it Online!

Basically removes all duplicates and checks if the lengthMakes a list of how many times the resultinginteger exists in the list, adds 2 to the list and checks if everything is 0 or notequal. A sneaky way to check if all the items are equal, and that they are all 2.

Vyxal, 9 bytes

'?O1=;L0=

Try it Online!

Basically removes all duplicates and checks if the length of the resulting list is 0 or not.

Vyxal, 5 bytes

vO2J≈

Try it Online!

Makes a list of how many times the integer exists in the list, adds 2 to the list and checks if everything is equal. A sneaky way to check if all the items are equal, and that they are all 2.

Source Link
DialFrost
  • 5.1k
  • 2
  • 13
  • 54

Vyxal, 9 bytes

'?O1=;L0=

Try it Online!

Basically removes all duplicates and checks if the length of the resulting list is 0 or not.