strings
/* 1. You have been given a String S. You need to find and print whether this string is a palindrome or not. If yes, print"YES" (without quotes), else print "NO" (without quotes) */ #include <stdio.h> #include <string.h> int main() { int h,l=0,count=0; char ch[100]; scanf("%s", ch); h=(strlen(ch)-1); while(h>l){ if(ch[l++]!=ch[h--]){ count++; } } if(count>0){ printf("NO"); } else{ printf("YES"); } return 0; } /* 2. Alice wrote a sequence of words in CamelCase as a string of letters, s, having the following properties: It is a concatenation of one or more words consisting of English letters., All letters in the first word are lowercase., For each of the subsequent words, the first letter is uppercase and rest of the letters are lowercase. Given s, print the number of words in s on a new line.Sample Input: saveChangesInTheEditor Sample Output: 5 */ #include<stdio.h> int main() { ...