Intuit Interview Question: pseudo code to check if a str... | Glassdoor

Interview Question

Software Engineer Interview Mountain View, CA

pseudo code to check if a string is a palindrome


Interview Answer

3 Answers


Perhaps a bit more efficient:

var palindrome = "dogeeseseegod"

int x = 0;
int y = palindrome .length-1;

while(x <= y)
    if(palindrome [x] != palindrome [y])
        return false;


return true;

Anonymous on Dec 22, 2011

Do you have a question about Intuit? Don't ask just anyone for information, ask an employee from Intuit. They're all waiting at Rooftop Slushie.

Anonymous on Aug 13, 2019

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

Add Answers or Comments

To comment on this, Sign In or Sign Up.