RSM Interview Question

Write a code for pallindrome? Write a code to find lenght of a string without using the length operator? Write how the equals too (==) operator work?

Interview Answer

Anonymous

Aug 26, 2024

Pallindrome code is fairly simple and can use any method,I personally used two pointers. Finding lenght without the length operator was just maintaining a count +=1 function for every traversal through the string. Equals too operator working can be showed using the XOR gate.