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

Popular posts from this blog

How to get the user details, user current level, next level, Rank in sql server

How to update the user level when ever user report any tweet in sql

Implement virtualisation in kendo drop down list using jquery ajax in mvc, aspx page