Interview Questions 3
Level 4 company :
- Explain the project structure and each significance?
- Write a program to identify whether a given string is palindrome or not using recursion?
- Program to print the repeated count of characters
string str=“hello”;
char c;
for(int i=0;i<str.length();i++){
int count=0;
c=str[i];
for(int j=1;j<str.length();j++){
if(c==str[j]){
count=count+1;
}
}
console.write(c+“has repeated ”+count+”times”);
count=0;
}
and write the above program using linq?
Comments
Post a Comment