Schlumberger | Virtual Round II (Onsite) | Palindrome
Anonymous User
1003

Question: Given a string, check whether the string is palindrome or not.

Eg: "madam" is palindrome

Follow-up: If you do this iteratively they ask to solve the problem recursively, this is where panic starts!

Schlumberger often asks this same question irrespective of the round to check your basics of recursive coding. Practise this beforehand.

Happy Coding!

Comments (2)