Click here to Skip to main content
15,358,239 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionHow can i read or get an XML from another host? Pin
spawneditions24-Mar-10 9:09
Memberspawneditions24-Mar-10 9:09 
AnswerRe: How can i read or get an XML from another host? Pin
cjoki1-Apr-10 9:21
Membercjoki1-Apr-10 9:21 
GeneralRe: How can i read or get an XML from another host? Pin
spawneditions5-Apr-10 9:14
Memberspawneditions5-Apr-10 9:14 
AnswerRe: How can i read or get an XML from another host? Pin
Jayapal Chandran5-Apr-10 7:27
MemberJayapal Chandran5-Apr-10 7:27 
GeneralRe: How can i read or get an XML from another host? Pin
spawneditions5-Apr-10 9:15
Memberspawneditions5-Apr-10 9:15 
Questionproblem assistance Pin
nanjekye joannah22-Mar-10 8:28
sussnanjekye joannah22-Mar-10 8:28 
AnswerRe: problem assistance Pin
rastaVnuce22-Mar-10 8:36
MemberrastaVnuce22-Mar-10 8:36 
AnswerRe: problem assistance Pin
yiangos29-Apr-10 9:46
professionalyiangos29-Apr-10 9:46 
nanjekye joannah wrote:
python function that takes a string and returns true if the string is a palindrome


So...

A quick and dirty solution:
Start slicing off first and last letter of the string, and check if they are the same. If you find a mismatching pair, return false immidiately. Carry on until you're left with at most one letter, at which point you return true, as the string is a palindrome.
Φευ! Εδόμεθα υπό ρηννοσχήμων λύκων!
(Alas! We're devoured by lamb-guised wolves!)

AnswerRe: problem assistance Pin
Stephen Hewitt10-Jun-10 21:52
MemberStephen Hewitt10-Jun-10 21:52 
GeneralRe: problem assistance Pin
DaveDn24-Nov-10 5:58
MemberDaveDn24-Nov-10 5:58 
GeneralRe: problem assistance Pin
DaveDn27-Nov-10 23:27
MemberDaveDn27-Nov-10 23:27 
GeneralRe: problem assistance [modified] Pin
Keith.Badeau22-Feb-11 12:49
MemberKeith.Badeau22-Feb-11 12:49 
QuestionPERL reading .sql file? Pin
josephong21-Mar-10 23:07
Memberjosephong21-Mar-10 23:07 
AnswerRe: PERL reading .sql file? Pin
jschell6-Apr-10 10:56
Memberjschell6-Apr-10 10:56 
QuestionDjango trouble Pin
rastaVnuce20-Mar-10 23:57
MemberrastaVnuce20-Mar-10 23:57 
AnswerRe: Django trouble Pin
Chris Austin23-Mar-10 4:28
MemberChris Austin23-Mar-10 4:28 
GeneralRe: Django trouble Pin
rastaVnuce23-Mar-10 4:41
MemberrastaVnuce23-Mar-10 4:41 
GeneralRe: Django trouble Pin
Chris Austin23-Mar-10 4:47
MemberChris Austin23-Mar-10 4:47 
GeneralRe: Django trouble Pin
rastaVnuce23-Mar-10 5:00
MemberrastaVnuce23-Mar-10 5:00 
Questioninfinite loop while using php's dir object..? Pin
cjoki19-Mar-10 11:31
Membercjoki19-Mar-10 11:31 
AnswerRe: infinite loop while using php's dir object..? Pin
chevu28-Mar-10 23:28
Memberchevu28-Mar-10 23:28 
GeneralRe: infinite loop while using php's dir object..? Pin
cjoki29-Mar-10 4:53
Membercjoki29-Mar-10 4:53 
GeneralRe: infinite loop while using php's dir object..? Pin
chevu29-Mar-10 19:04
Memberchevu29-Mar-10 19:04 
Questionquery help with table that has no primary keys Pin
scorpio2219-Mar-10 10:26
Memberscorpio2219-Mar-10 10:26 
AnswerRe: query help with table that has no primary keys Pin
PHP_Guy22-Mar-10 11:01
MemberPHP_Guy22-Mar-10 11:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.