Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Tree Structure Challenge

by Anonymous Monk
on Nov 30, 2015 at 12:04 UTC ( #1148887=note: print w/replies, xml ) Need Help??


in reply to Tree Structure Challenge

Are we expected to write the module Zoo.pm while we are at it? Or am I missing something?

Replies are listed 'Best First'.
Re^2: Tree Structure Challenge
by choroba (Archbishop) on Nov 30, 2015 at 12:17 UTC
    If you can just write the diff method, you don't need to write anything else.
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

      Unless you want to test your code rather than just post code that you've never actually run.

      - tye        

      If diff needs to be based on Parent and get_leaves, I don't see how we can get around not writing those. So, we need to write the whole module.

      What is the assumed output of the constructor?

      Dum Spiro Spero
        There's no output. It just returns an object of the Zoo class that you can run get_leaves on, or use it as a parameter to diff.
        ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2020-11-01 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (291 votes). Check out past polls.

    Notices?