In a hotel with m floors and n rooms on each floor, we know the number of persons from each room. A cable will be installed going horizontally or vertically through successive neighbor rooms. How can this cable of length = height + length of the hotel be installed starting from the upper left room up to the down right room, such that the number of clients using the cable is maximal? Any ideeas???

I guess Sliding Snakes of the desert can solve your problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.