Update appNew update is available. Click here to update.
About
Indian Institute of Information Technology,Nagpur 2026
C++ - Default language
My Stats
EXP gained
yellow-spark
3038
Level
5 (Champion)
Community stats
Discussions
0
Upvotes
0
Know more
Weekend contest rating
Contest attended
Problems solved
2021 2023
Better than %
Weekend contest rating
Contest attended
Problems solved
2021 2023
Better than %
49
Total problems solved
44
Easy
5
Moderate
0
Hard
0
Ninja
Jan Jan Feb Feb Mar Mar Apr Apr May May Jun Jun Jul Jul Aug Aug Sep Sep Oct Oct Nov Nov Dec Dec

Current streak:

0 days

Longest streak:

4 days

Less

More

Discussions
C++ Recursive Solution without creating separate function
Interview problems

bool isPalindrome(string& str, int i=0)

{

    if (i>=str.size()/2)

        return true;

    if (str[i]!=str[str.size()-i-1])

        return false;

    return isPalindrome(str, i+1);

}

profile
Kamal Chandra
Published On 08-Dec-2023
31 views
0 replies
0 upvotes