Topic Practice · Data Structures
Tuples & Sets problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Unique Values
4 test casesEasy✓2. Sorted Unique
4 test casesEasy✓3. Point Swap
4 test casesEasy✓4. Quotient and Remainder
4 test casesEasy✓5. Common Elements
4 test casesEasy✓6. All Different?
4 test casesEasy✓7. Sum of Pairs
4 test casesEasy✓8. Search a Tuple
4 test casesEasy✓9. How Many Different?
4 test casesEasy✓10. Is It a Subset?
4 test casesEasy✓11. Tuple Summary
4 test casesEasy✓12. Make a Tuple
4 test casesEasy✓13. Unpack a Point
4 test casesEasy✓14. Position in a Tuple
4 test casesEasy✓15. Add to a Set
4 test casesEasy✓16. Member of the Set?
4 test casesEasy✓17. Join Two Tuples
4 test casesEasy✓18. Remove From a Set
4 test casesEasy✓19. Count in a Tuple
4 test casesEasy✓20. Smallest and Largest as a Tuple
4 test casesEasy✓21. Letters Used
4 test casesEasy✓22. Tuples Can't Change
4 test casesEasy✓23. Only in the First
4 test casesMedium✓24. In Exactly One
4 test casesMedium✓25. First Repeat
4 test casesMedium✓26. Distinct Letters
4 test casesMedium✓27. Pangram
4 test casesMedium✓28. Distance Between Points
4 test casesMedium✓29. Sort by Second
4 test casesMedium✓30. Return a Tuple
4 test casesMedium✓31. Nothing in Common?
4 test casesMedium✓32. In Every Line
4 test casesMedium✓33. Set Commands
4 test casesMedium✓34. Names and Scores as Tuples
4 test casesMedium✓35. Values That Repeat
4 test casesMedium✓36. Has Every Required Skill?
4 test casesMedium✓37. Rank Students
4 test casesMedium✓38. Places Visited
4 test casesMedium✓39. First Word That Appears Once
4 test casesMedium✓40. Flip the Pairs
4 test casesMedium✓41. Distinct Pairs
4 test casesHard✓42. Union of Many
4 test casesHard✓43. Longest Run Without Repeats
5 test casesHard✓44. Set Operations
4 test casesHard✓45. Same Letters Groups
4 test casesHard✓46. Words Only Here, Only There, Both
4 test casesHard✓47. Points With namedtuple
4 test casesHard✓48. Merge Overlapping Intervals
4 test casesHard✓49. Friend Groups
4 test casesHard✓50. Triples That Sum to Zero
4 test casesHard
4 test casesEasy✓2. Sorted Unique
4 test casesEasy✓3. Point Swap
4 test casesEasy✓4. Quotient and Remainder
4 test casesEasy✓5. Common Elements
4 test casesEasy✓6. All Different?
4 test casesEasy✓7. Sum of Pairs
4 test casesEasy✓8. Search a Tuple
4 test casesEasy✓9. How Many Different?
4 test casesEasy✓10. Is It a Subset?
4 test casesEasy✓11. Tuple Summary
4 test casesEasy✓12. Make a Tuple
4 test casesEasy✓13. Unpack a Point
4 test casesEasy✓14. Position in a Tuple
4 test casesEasy✓15. Add to a Set
4 test casesEasy✓16. Member of the Set?
4 test casesEasy✓17. Join Two Tuples
4 test casesEasy✓18. Remove From a Set
4 test casesEasy✓19. Count in a Tuple
4 test casesEasy✓20. Smallest and Largest as a Tuple
4 test casesEasy✓21. Letters Used
4 test casesEasy✓22. Tuples Can't Change
4 test casesEasy✓23. Only in the First
4 test casesMedium✓24. In Exactly One
4 test casesMedium✓25. First Repeat
4 test casesMedium✓26. Distinct Letters
4 test casesMedium✓27. Pangram
4 test casesMedium✓28. Distance Between Points
4 test casesMedium✓29. Sort by Second
4 test casesMedium✓30. Return a Tuple
4 test casesMedium✓31. Nothing in Common?
4 test casesMedium✓32. In Every Line
4 test casesMedium✓33. Set Commands
4 test casesMedium✓34. Names and Scores as Tuples
4 test casesMedium✓35. Values That Repeat
4 test casesMedium✓36. Has Every Required Skill?
4 test casesMedium✓37. Rank Students
4 test casesMedium✓38. Places Visited
4 test casesMedium✓39. First Word That Appears Once
4 test casesMedium✓40. Flip the Pairs
4 test casesMedium✓41. Distinct Pairs
4 test casesHard✓42. Union of Many
4 test casesHard✓43. Longest Run Without Repeats
5 test casesHard✓44. Set Operations
4 test casesHard✓45. Same Letters Groups
4 test casesHard✓46. Words Only Here, Only There, Both
4 test casesHard✓47. Points With namedtuple
4 test casesHard✓48. Merge Overlapping Intervals
4 test casesHard✓49. Friend Groups
4 test casesHard✓50. Triples That Sum to Zero
4 test casesHard