Algorithm of 555 - Bridge Hands

Problem Description Link

You can follow this stapes :
1. first assign the all card according to order that order (given in
     problem description ) in a two dimensional array
         ie. rank[55][4].
2. then distributed the card among 4 players and when distributed
     card compare the card value from rank index and store the index
for each player(each players have individual array int type)
3. finally sort each array and print from rank table this sorted
     value is used for rank index.
image

No comments:

Post a Comment

Write your comment - Share Knowledge and Experience