Count number of ways to cover a distance

Title: Count number of ways to cover a distance Source: www.geeksforgeeks.org

Given a distance ‘dist, count total number of ways to cover the distance with 1, 2 and 3 steps.

Java solution

Java solution

Rate this post

Leave a Reply