Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Longest Common SubSequence Not Working Correctly

by Anonymous Monk
on Nov 15, 2007 at 00:49 UTC ( [id://650882]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Longest Common SubSequence Not Working Correctly
in thread Longest Common SubSequence Not Working Correctly

Thank you Blokhead. I still have lots to learn about Perl. I have another question for you. The sub lcs takes 2 parameters ($a, $b) but inside the loop where the recursive call is made, the program did a call with

return lcs($a, $b) . $az;

what does the . $az do? I tried printing out the $a, $b but did not see any differences. The new string is one character shorter. When I remove $az from the return, the program produce the wrong result. Thanks again for your help.
  • Comment on Re^3: Longest Common SubSequence Not Working Correctly

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://650882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found