Skip to main content
1 of 2
Neil
  • 177.3k
  • 12
  • 74
  • 281

JavaScript (ES6), 46 bytes

f=(n,s,e)=>s<=e&&`${s++}`.includes(n)+f(n,s,e)

(My best nonrecursive version was 61 bytes.)

Neil
  • 177.3k
  • 12
  • 74
  • 281