Calculate Minimum clicks of remote buttons


  • 0
    S

    Given a remote having 0-9 digits, plus button (to increase channel), minus (to decrease) and previous channel button (to go to previous channel). We were given 2 numbers stating start and end channel number and an array having various channel numbers. The task was to go to all channel numbers given in array with minimum number of clicks.

    Something similar to this http://www.spoj.com/problems/WITTYBOY/ but without any channel ban requirement. Just visiting of all the channels in the given order.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.