You are viewing a single comment's thread. Return to all comments →
Here is my easy solution in c++, you can have the explanation here : https://youtu.be/1PDDxGbmSj8
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int r = 1; for(int i = 0; i < s.size(); i++) { if(s[i] < 'a') r++; } cout << r; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
CamelCase
You are viewing a single comment's thread. Return to all comments →
Here is my easy solution in c++, you can have the explanation here : https://youtu.be/1PDDxGbmSj8