Hi Dominik,
I finally solved the problem when I relaized that my initial program (which solved the single test-problem OK) would fail on a deck of cards where the final card (card no 52) would be dealt as the first card on pile no. 16. My program would suggest an overflow on card no. 53, which ...
Search found 3 matches
- Wed Apr 09, 2003 12:12 am
- Forum: Volume 1 (100-199)
- Topic: 178 - Shuffling Patience
- Replies: 15
- Views: 5162
- Thu Apr 03, 2003 11:03 pm
- Forum: Volume 1 (100-199)
- Topic: 178 - Shuffling Patience
- Replies: 15
- Views: 5162
- Thu Aug 01, 2002 8:55 pm
- Forum: Volume 1 (100-199)
- Topic: 178 - Shuffling Patience
- Replies: 15
- Views: 5162
178 - Shuffling Patience
Hi all,
I have been trying to solve problem 178, but with no success. My program fails to give the right solution to the sample input given.
For the input:
TS QC 8S 8D QH 2D 3H KH 9H 2H TH KS KC
9D JH 7H JD 2S QS TD 2C 4H 5H AD 4D 5D
6D 4S 9S 5S 7S JS 8H 3D 8C 3S 4C 6S 9C
AS 7C AH 6H KD JC 7D AC ...
I have been trying to solve problem 178, but with no success. My program fails to give the right solution to the sample input given.
For the input:
TS QC 8S 8D QH 2D 3H KH 9H 2H TH KS KC
9D JH 7H JD 2S QS TD 2C 4H 5H AD 4D 5D
6D 4S 9S 5S 7S JS 8H 3D 8C 3S 4C 6S 9C
AS 7C AH 6H KD JC 7D AC ...