Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Hi,

    Considering the shape you were talking about, your function should return these three:

    +----+
    |+--+|
    ||  ||
    ||  ||
    |+--+|
    +----+
    
    +--+
    |++|
    |++|
    +--+
    
    ++
    ++
    

    It matches the description: If you encounter imbricated pieces, both outer and inner shapes have to be returned. so I'm not sure I'll add anything to it unless you can precise what is lacking or why (I need enlightenment here). What were the other possibilities you thought where matching, exactly?

    It seems you began the hard way, yeah. I created it that way and went almost crazy with the + => -| thing too... ;) I believed I had found a 1 dan kata, actually. Until lechevalier came by and show me the right way to solve it (you can take a look at my python solution if you want to see the evil way).

    More sample tests: that's doable. I'll think about some of them (but not from the random ones).

    cheers

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Approved

  • Default User Avatar

    Thanks a lot! Glad you liked it. :)

  • Custom User Avatar

    Thank you Blind4Basics,

    I had a great 3 days with this! You must have had a hell of a time inventing this thing though! I think it's brilliant.