Example:
Input: s = "12345678" Output: 8
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){ string s = "12345678"; cout << s.size() << "\n"; return 0;}
No comments:
Post a Comment