Skip to content

Return Book

Sar Champagne Bielert edited this page Apr 10, 2024 · 3 revisions

Unit 2 Session 2 (Click for link to problem statements)

U-nderstand

Understand what the interviewer is asking for by using test cases and questions about the problem.

  • Q
    • A

P-lan

Plan the solution with appropriate visualizations and pseudocode.

General Idea: TODO

1) TODO

⚠️ Common Mistakes

I-mplement

def return_book(borrowed_books, book):
    if book in borrowed_books:
        borrowed_books[book] += 1
    else:
        borrowed_books[book] = 1
    return borrowed_books
Clone this wiki locally