What's your opinion on this solution to number 2 from problem set 4 (Spring 2011)?
MIT 6.00 Intro Computer Science (OCW)
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
Hi David, unlikely though, what if you get 2 shifts that returns exactly the same count? The list.max() will only return the first max number.
Yes, but if there are two shifts that return the same count, it's indifferent which one it returns right?
maybe for a long text they decrypt different words but happen to be the same number? We may need a way to iterate the list and return all indices with the max number and also check the decoded texts?
Not the answer you are looking for? Search for more explanations.
This is Problem Set 4 - Question 2. Your answer is probably related to question 4. This function is used to decode a message that was encoded using just one shift. Multiple shifts are considered in question 4. In this case the shift that decodes more words will decode all the words in the message because it was encoded with one shift only.