C++ problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chchiu
    New Member
    • Dec 2008
    • 1

    #1

    C++ problem

    Can some one help me to slove this problem, i have no idea how to slove it.
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    #2
    Hi,

    Can i ask you .. where did you find this qn..?

    Thanks

    Comment

    • vmpstr
      New Member
      • Nov 2008
      • 63

      #3
      Assuming this is not some sort of an ACM problem that has to run very quickly, you can just do a depth first search and keep a counter of the possibilities.

      When an appropriate possibility is reached, print it out.

      And yes, I would also like to know where you got the question...

      Comment

      Working...