Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 624 Bytes

File metadata and controls

18 lines (9 loc) · 624 Bytes

Add your answers to the questions below.

  1. What is the runtime complexity of your depth_first_for_each method?

  2. What is the space complexity of your depth_first_for_each function?

  3. What is the runtime complexity of your breadth_first_for_each method?

  4. What is the space complexity of your breadth_first_for_each method?

  5. What is the runtime complexity of the provided code in names.py?

  6. What is the space complexity of the provided code in names.py?

  7. What is the runtime complexity of your optimized code in names.py?

  8. What is the space complexity of your optimized code in names.py?