Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
33 Online
Hi. I'm having trouble on PS3, Part B, where I'm supposed to use get_perms(hand, n) and have the computer choose a valid word. But I don' t know how to extract words out of get_perms(hand,n). Can anybody enlighten me? Thanks in advance!
Still Need Help?
Join the QuestionCove community and study together with friends!
did you look at the get_perms() function to see what it returns?
It returns toret. Not sure what that means. I'd like to use is_valid_word on each of the permutations returned.
I'm okay now. I figured it out. Thanks for pointing me in the right direction.
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
unknownnnnnn:
The house remembers every cry It learned to swallow through the years. Its walls still breathe the lullaby Of splintered hopes and drying tears.
Sailor:
Regarding bypassing in chats/question comments: Hello everyone! Lately, the mod team has noticed an increasing amount of bypassing in both the question sect
xcoledd1:
I need help decorating my tri-fold poster more, I just need something I could sea
Rosa2011:
I make a poem, this is my first one. u201c Finally I reached your hand, but only in my dream.
WobblyWiggly:
SaltySuga, Im sorry but can you please stop hating so much? You're always saying "clock it" like, gurl, ur not the main character.
idontexistrn1:
Can you get married before 20 or like is it illegal..like will the government fin
uknownprttyfacekayla:
I made a poem don't know what to call if yet if you can have any ideas y'all She walks with quietness in her chest a hollow where their voices stayed her mo
Nina001:
what is something I could do to help my gerd or acid reflux whatever it is becaus
WobblyWiggly:
aight don't answer or do but uh... what's the most embarrassing way you have ever gotten hurt in school? For me is when I feel down the stairs in front of l
24 minutes ago
48 Replies
1 Medal
3 hours ago
4 Replies
1 Medal
8 hours ago
1 Reply
0 Medals
5 hours ago
7 Replies
1 Medal
15 hours ago
2 Replies
0 Medals
8 hours ago
33 Replies
3 Medals
15 hours ago
25 Replies
3 Medals
20 hours ago
3 Replies
1 Medal
16 hours ago
14 Replies
0 Medals