Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Algorithm Error #224

Closed
bnmnetp opened this issue Aug 14, 2016 · 2 comments
Closed

Algorithm Error #224

bnmnetp opened this issue Aug 14, 2016 · 2 comments

Comments

@bnmnetp
Copy link
Member

bnmnetp commented Aug 14, 2016

Error reported in course Problem Solving with Algorithms and Data Structures on page http://interactivepython.org/runestone/static/pythonds/AlgorithmAnalysis/AnAnagramDetectionExample.html
My Username: tingRay
My Email: lting48@163.com
Description: In solution 1 of Anagram detection problem for strings, the output of 'anagramSolution1('abcd','dcgba')' will be True.Obviously,it is incorrect.

@bnmnetp
Copy link
Member Author

bnmnetp commented Aug 18, 2016

All of the example solutions make the assumption that the strings are the same length. We can easily check the length and reject two strings that are of different lengths.

@bnmnetp
Copy link
Member Author

bnmnetp commented Aug 18, 2016

This issue was moved to RunestoneInteractive/pythonds#24

@bnmnetp bnmnetp closed this as completed Aug 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant