Skip to main content
3 of 4
added 69 characters in body
Otávio
  • 181
  • 1
  • 7

#Swift 3, 96 93 bytes

import Cocoa
func c(n:Int,s:Int,e:Int){print((s...e).filter{"\($0)".contains("\(n)")}.count)}

Edit 1:

Saved 3 bytes by using shorthand parameters

Otávio
  • 181
  • 1
  • 7