Cody Problem 51541 asked solvers to guess the card in Fitch Cheney's five-card trick. This problem is the counterpart: Write a function that takes five cards, selects four of them, and puts them in order to pass to the partner. See the previous problem for the rules. If the input string is '5C 7C 6S 4H 3D', the output string should be '5C 3D 6S 4H'. Some hands will have multiple possible answers. Your function needs only to provide one of them.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers3
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6803 Solvers
-
237 Solvers
-
Who knows the last digit of pi?
692 Solvers
-
427 Solvers
-
Matlab Basics - Pick out parts of a vector
270 Solvers
More from this Author325
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!