Birthday Cake Candles

  • + 0 comments

    one line code C++:

    return count(ar.begin(), ar.end(), *std::max_element(ar.begin(), ar.end()));