Skip to content

Commit 46177c4

Browse files
authored
Update README.md
1 parent 0904376 commit 46177c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ https://www.geeksforgeeks.org/top-50-string-coding-problems-for-interviews/
1515

1616
### inbuilt Method:-
1717

18-
- toupper:- for(int i=0;i<s.length();i++)
19-
ans=ans+(char)tolower(s[i]);
18+
- toupper:- (char)tolower(s[i]);
2019
- tolower:- (char)toupper(s[i]);
2120

2221

23-
- Transform:- transform(s.begin(), s.end(), s.begin(), ::tolower);
24-
transform(s.begin(), s.end(), s.begin(), ::toupper);
22+
Transform:-
23+
- transform(s.begin(), s.end(), s.begin(), ::tolower);
24+
- transform(s.begin(), s.end(), s.begin(), ::toupper);
2525

26-
- Find:- s1.find(s2[i]):- find s2[i] in s1
26+
- Find:- s1.find(s2[i]):- it means <find s2[i] in s1>
2727

2828

0 commit comments

Comments
 (0)