Skip to main content
3 of 3
added 144 characters in body
Yodle
  • 2.4k
  • 13
  • 23

Java, 92 89 71 bytes

Now with lambdas!

(t,l,u)->{int z=0;for(;l<=u;)if((l+++"").contains(t+""))z++;return z;};

Old 89 byte function solution:

int d(int t,int l,int u){int a=0,i=l;for(;i<=u;)if((i+++"").contains(t+""))a++;return a;}

Hooray for the super increment function!

Yodle
  • 2.4k
  • 13
  • 23