Java, C++, Database, Algorithms, Searching, Sorting, Linklist, Tree, Number Theory, String, Array, Graph, MongoDB, Mysql, Oracle
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