Skip to main content
added 222 characters in body
Source Link
Ajax1234
  • 7.7k
  • 1
  • 15
  • 28

Python 3, 9579 bytes:

from re import *re
f=lambdalambda s:any(re.findall(('.{'+str(i)+'}''*i).join('nice'),s)for i in range(len(s)))

Try it online!

Python 3, 95 bytes:

from re import *
f=lambda s:any(findall(('.{'+str(i)+'}').join('nice'),s)for i in range(len(s)))

Python 3, 79 bytes:

import re
lambda s:any(re.findall(('.'*i).join('nice'),s)for i in range(len(s)))

Try it online!

Source Link
Ajax1234
  • 7.7k
  • 1
  • 15
  • 28

Python 3, 95 bytes:

from re import *
f=lambda s:any(findall(('.{'+str(i)+'}').join('nice'),s)for i in range(len(s)))