Loading...
Engaged Employer
Write a function to check if a string is a palindrome or not
Anonymous
In Python: def IsPalidrome(test_string): return test_string == test_string[::-1]
In cpp bool isPalindrome(string s){ int r = s.length() - 1, l = 0; while (l < r){ if(s[l] != s[r]){ return False; } l++; r--; } }
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.