Ask your own question, for FREE!
QuestionCove Feedback 19 Online
kekeman:

Select the programming task that requires recursion. Creating a list of all of the anagrams of a word Reversing the order of words in a list Searching for a word in a list by comparing all words in the list from first to last Searching for a word in a list by repeatedly splitting it into smaller, equally sized lists

Angle:

1 attachment
kekeman:

Ok so its either A, C, or D

minustempo:

No C doesn't use recursion because you're just traversing a list.

minustempo:

stack overflow says you use recursion in anagrams by picking each letter from the string, moving it to the front, and the doing the anagram of the rest of the letters. searching for a word by cutting the list in half is one of the classic examples of recursion: binary search

kekeman:

Ok so D.)?

kekeman:

@minustempo wrote:
stack overflow says you use recursion in anagrams by picking each letter from the string, moving it to the front, and the doing the anagram of the rest of the letters. searching for a word by cutting the list in half is one of the classic examples of recursion: binary search
@angle wrote:
So D.)???????

kekeman:

@minustempo wrote:
stack overflow says you use recursion in anagrams by picking each letter from the string, moving it to the front, and the doing the anagram of the rest of the letters. searching for a word by cutting the list in half is one of the classic examples of recursion: binary search
So D.)??

Angle:

yes, D is correct

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!
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!