-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lecture "Brute-force algorithms", exercise 2 #17
Comments
|
|
''' from collections import deque def stack_from_list(input_list):
print (test_stack(["a","b","c"], deque(['a', 'b', 'c']))) |
|
|
|
|
|
|
|
|
|
|
|
|
`from collections import deque cities_list = ["Ottavia", "Leonia", "Trude"] def test_stack_from_list(input_list, expected): def stack_from_list(input_list):
print(test_stack_from_list(cities_list, deque(['Ottavia', 'Leonia', 'Trude']))) |
Hi all, Thanks for your solution. A few comments:
|
Create a test case for the algorithm introduced in Listing 2.
The text was updated successfully, but these errors were encountered: