Skip to main content
1 of 2
t-clausen.dk
  • 3.8k
  • 12
  • 16

TSQL(sqlserver 2016), 113 bytes

Golfed:

DECLARE @ VARCHAR(99) = 'Blinky,Inky,Pinky,Clyde'

SELECT*FROM STRING_SPLIT('Blinky,Inky,Pinky,Clyde',',')EXCEPT SELECT*FROM STRING_SPLIT(@,',')WHERE @ NOT LIKE'%n'

Ungolfed:

DECLARE @ VARCHAR(99) = 'Blinky,Inky,Pinky,Clyde'

SELECT * FROM STRING_SPLIT('Blinky,Inky,Pinky,Clyde',',')
EXCEPT
SELECT * FROM STRING_SPLIT(@,',')
WHERE @ NOT LIKE '%n'

Fiddle

t-clausen.dk
  • 3.8k
  • 12
  • 16