India’s Best Job Seekers and Training Platform Forums Java Problems set A number is called as a stepping number if the adjacent…

  • A number is called as a stepping number if the adjacent…

  • Akash 

    Administrator
    at

    The stepping number:

    A number is called as a stepping number if the adjacent digits are having a difference of 1. For eg. 8,343,545 are stepping numbers. While 890, 098 are not. The difference between a ‘9’ and ‘0’ should not be considered as 1.

    Given start number(s) and an end number(e) your function should list out all the stepping numbers in the range including both the numbers s & e.

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 02nd November 2020. Attend one week free demo classes.Register Now

New Report

Close