File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ # gfg_string_question
2
+ https://www.geeksforgeeks.org/top-50-string-coding-problems-for-interviews/
3
+
4
+ ## Importance
5
+ - playing with characters test logic of programmer very well
6
+ - understanding of C++ Standard Template Library(STL) also increase
7
+
8
+ ## Key Points
9
+ ### ascii value:-
10
+ - 48 to 57 - Number
11
+ - 65 to 90 - uppercase [ (s[ 0] >='a'&&s[ 0] <='z']
12
+ - 97 to 122 - lowercase [ (s[ 0] >='A'&&s[ 0] <='Z']
13
+ -lowercase = lowercase + 32
14
+
15
+
16
+ ### inbuilt Method:-
17
+
18
+ - toupper:- for(int i=0;i<s.length();i++)
19
+ ans=ans+(char)tolower(s[ i] );
20
+ - tolower:- (char)toupper(s[ i] );
21
+
22
+
23
+ - Transform:- transform(s.begin(), s.end(), s.begin(), ::tolower);
24
+ transform(s.begin(), s.end(), s.begin(), ::toupper);
25
+
26
+ - Find:- s1.find(s2[ i] ):- find s2[ i] in s1
27
+
28
+
You can’t perform that action at this time.
0 commit comments