We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
In first example, first teacher need 3 coins bribe to correct the marks and second teacher need 2 coins bribe or free to correct if he bribe 1 other teacher. But the explanation for first example says, if he bribe second teacher with 2 coins, first teacher will correct the marks for free. How it is as first teacher clearly saying he need 3 coins to correct the marks irrespective of bribing any other teachers as the value is '0'. Please explain.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Easy School
You are viewing a single comment's thread. Return to all comments →
In first example, first teacher need 3 coins bribe to correct the marks and second teacher need 2 coins bribe or free to correct if he bribe 1 other teacher. But the explanation for first example says, if he bribe second teacher with 2 coins, first teacher will correct the marks for free. How it is as first teacher clearly saying he need 3 coins to correct the marks irrespective of bribing any other teachers as the value is '0'. Please explain.