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.
i have checked this code and there is a problem in if condition.If the occurence of maximum value is more than once then "if" condition is comparing the max value above 127 just once.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
i have checked this code and there is a problem in if condition.If the occurence of maximum value is more than once then "if" condition is comparing the max value above 127 just once.