-
Notifications
You must be signed in to change notification settings - Fork 254
Update Score
Sar Champagne Bielert edited this page Apr 10, 2024
·
2 revisions
Unit 2 Session 2 (Click for link to problem statements)
Understand what the interviewer is asking for by using test cases and questions about the problem.
- Q
- A
Plan the solution with appropriate visualizations and pseudocode.
General Idea: TODO
1) TODO
def update_score(scores, player, points):
if player in scores:
scores[player] += points
else:
scores[player] = points
return scores