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.
you only need the value of gap between indices of two odd numbers because 2*gap is minimum number of breads must be given to make that interval even. If number of odds is odd this can't be done.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fair Rations
You are viewing a single comment's thread. Return to all comments →
you only need the value of gap between indices of two odd numbers because 2*gap is minimum number of breads must be given to make that interval even. If number of odds is odd this can't be done.