Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Palindrome

def pal(word):
    isPal = 1
    first = 0
    last = len(word)-1;
    for x in range(last):
        if(word[first]!=word[last]):
            isPal = 0
        first += 1
        last -=1
    return isPal
        
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Palindrome
ADD COMMENT
Topic
Name
9+7 =