You are viewing a single comment's thread. Return to all comments →
your solution is great, but I don't get the di=ai*5+bi*2+ci*1 part.
what does a,b,c's denote here.
what if the problem has more than 3 collegaues.
a is the number of decution by 5 steps, b is the number of deduction by 2 steps, c is the number of deduction by 1 steps
They are nothing to do with the number of colleagues.
You have 3 ways either deduct 5 or 2 or 1.
got it , thanks a lot. :)