#include <bits/stdc++.h>using namespace std;int main(){string str;cin>>str;int len=str.length();int count=1;for(int i=0;i<len;){if(isupper(str[i]) && i>-1){count++;str.erase(i,1);i--;}elsei++;}cout<<count<<endl;return 0;}
Sunday, May 24, 2020
New
CamelCase HackerRank Problem Solution in C++ | String
About Tirth Patel
Tirth Patel is a CSE Sophomore from Ahmedabad,Gujarat,India. He has a deep interest towards technology and is passionate about Reading, Competitive Coding, Writing,Acting and Philosophy. At the age of 13 he had successfully managed a blog with almost 50,000 Organic visitors.
String
Tags:
C++,
Coding,
Competitive Programming,
String
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Guys, if you have any doubts or suggestions please let us know.