| preferred AP College board partner for AP classes
hard Solved by 53 students
Palindrome Algorithm Efficiency
< Prev
Next >

Which of the following describes the most efficient method for determining if a string is a palindrome?

A

Create all possible substrings and check each one

B

Compare characters from outside-in using indices

C

Sort the characters and compare to original

D

Convert to array, reverse, and compare character by character

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Time
Score
#1ac0335840610 4m 36s 284
#2yungmandrr23 0m 31s 159
#3jjacobs11 0m 12s 88
#4tianbo.shen11 0m 15s 85
#5legendarykavin1012 0m 28s 62
#6jdvillalta86512 0m 30s 60
#7soniahalepota200512 0m 38s 52
#8ballsgaming21425 2m 07s 43
#9afeldman061012 1m 01s 29
#10ardenashuri12 1m 06s 24
Items per page:
10
1 – 10 of 24

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy