You are viewing a single comment's thread. Return to all comments →
Here is my simple c++ solution, you can watch the explanation here : https://youtu.be/T9sxEzAbp-M
long taumBday(int b, int w, int bc, int wc, int z) { long bp = min(bc, wc + z); long wp = min(wc, bc + z); return bp * b + wp * w; }
Seems like cookies are disabled on this browser, please enable them to open this website
Taum and B'day
You are viewing a single comment's thread. Return to all comments →
Here is my simple c++ solution, you can watch the explanation here : https://youtu.be/T9sxEzAbp-M