You are viewing a single comment's thread. Return to all comments →
Here is my c++ solution, you can watch the video explanation here : https://youtu.be/zcWbM-aaopc
#include <bits/stdc++.h> using namespace std; int main (){ int s; cin >> s; vector<int> arr(s); for(int i = 0; i < s; i++){ cin >> arr[i]; } cout << count(arr.begin(), arr.end(), *max_element(arr.begin(), arr.end())); return 0; }
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 →
Here is my c++ solution, you can watch the video explanation here : https://youtu.be/zcWbM-aaopc