Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

davismj

I've done all the work for this course. You can find it at my blog: http://proficiamus.blogspot.com/ Please let me know if there are any problems!

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. Jamiroking
    Best Response
    You've already chosen the best response.
    Medals 1

    Hey thanks a lot for posting this. So far, I'm seeing a problem in problem set 6 #4. with find_all_subsets(sorted(hand)) you're not allowing for duplicate letters because hand is a dictionary and you end up with just a sorting of the keys.

    • 2 years ago
  2. davismj
    Best Response
    You've already chosen the best response.
    Medals 1

    Thanks for the heads up. Fixed. Detail of the fix: instead of using sorted(hand), which is a list of all the keys in hand sorted alphabetically, i used the following code to make a better list: sorted_hand = [] for i in sorted(hand): sorted_hand += [i] * hand[i] So, for example, if hand = {'b':1,'a':2}, the code would set i = a, and then add ['a','a'] to sorted_hand. next it would set i = b, and add ['b'] to sorted_hand. Hope this helps! Thanks again!

    • 2 years ago
  3. Jamiroking
    Best Response
    You've already chosen the best response.
    Medals 1

    Yeah I'm glad I saw it in your code because I have a feeling I would have stepped into the same pothole with the sorted(hand)

    • 2 years ago
  4. bengerman
    Best Response
    You've already chosen the best response.
    Medals 0

    I like your blog site idea, not necessarily spamming it, but the organization behind it.

    • 2 years ago
  5. adam22
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks man, i wouldn't have understood ps2 problem 3 without that.

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.