Learn

Take a look at the two graph search functions you implemented in Python:

  • depth-first search, using recursion
  • breadth-first search, using a queue

Instructions

Before running the code in the code editor, consider: what solution do you expect each function to come up with?

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?