You are viewing a single comment's thread. Return to all comments →
vector<int> breakingRecords(vector<int> scores) { int Min=scores[0],Max=scores[0]; int w=0,l=0; for(int i=0;i<scores.size();i++){ if(scores[i]<Min){ l++; Min=scores[i]; } else if(scores[i]>Max){ w++; Max=scores[i]; } } return {w,l}; }
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →