Question: Create a function called 'algorithm 3 ' which reorders a small deck of cards The cards need to be placed in the following order: a

Create a function called 'algorithm 3' which reorders a small deck of cards
The cards need to be placed in the following order:
a. Clubs (c), Diamonds (d), Hearts (h), Spades (s)
b. Increasing from 1 to 10(jacks, queens & kings are not included)
Example Input:
9h5s2h7c6d
Expected Output:
7 Clubs, 6 Diamonds, 2 Hearts, 9 Hearts, 5 Spades
 Create a function called 'algorithm 3' which reorders a small deck

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!