this consumer buildings blackened by the u_s_ and drug administration regulate so wide range of products including within lifesaving medicines agency helped safe and effective products reach the...
Let's do this in stages. Let's program a function f(n) that takes as an input number of coconuts, and that outputs the number of coconuts after 1 was given to the monkey and a 5th of...
Testing just means checking a program to gain confidence that it's correct. More formally, in a software engineering class we'd say that we want to gain confidence that the...
Let's test our knowledge of using shifting to fill out the parse table: the chart. Let's say that this is our grammar: P reduces to or can be rewritten as: open parenthesis P, closed...
The moral of the story is this is tricky. There are a lot of cases to deal with in getting this kind of search just right, and we made a couple mistakes along the way. I sort of duplicated the history...
Again, pretty straight forward. We get the word plays, and we sort them in reverse order again so that bgigest are first, this time by word score, and then we just take the first n. By doing the...
[How to implement optimizations] Okay, well that sounds great, so far. We have an idea of when we can possibly remove things based on mathematical truths. But how do we actually implement them in our...
Okay, time for a quiz, and in this quiz I'm going to ask you to write a function, and what I'm going to ask you to do is to define the function called deal, which will deal out some...
Now, if I tell you the point value of every letter. I'm creating a dictionary with the point values. I'm using underscore to indicate the blank, but we won't be dealing with...