Exercise: match the tarot cards! #2

Open
opened 2025-09-23 11:52:59 +02:00 by guillermo · 0 comments
Owner

Notebook: exercises/match_tarots/match_tarots.ipynb

Given 2 decks of tarot cards, deck1 and deck2, find all the matching pairs. The output should be a set of tuples (idx1, idx2) for every matching pair in deck1, deck2.

For example:

deck1 = ['C', 'B', 'A']
deck2 = ['A', 'C', 'B']
should return (in no particular order):

{(0, 1), (1, 2), (2, 0)}

Write an algorithm to match the tarot cards

Compute the Big-O complexity of your algorithm

**Notebook: exercises/match_tarots/match_tarots.ipynb** Given 2 decks of tarot cards, deck1 and deck2, find all the matching pairs. The output should be a set of tuples (idx1, idx2) for every matching pair in deck1, deck2. For example: deck1 = ['C', 'B', 'A'] deck2 = ['A', 'C', 'B'] should return (in no particular order): {(0, 1), (1, 2), (2, 0)} Write an algorithm to match the tarot cards Compute the Big-O complexity of your algorithm
guillermo changed title from Exercise: Match the tarot cards! to Exercise: match the tarot cards! 2025-09-23 13:52:08 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ASPP/2025-plovdiv-data#2
No description provided.