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

Which approach would most efficiently determine if a string is a palindrome?

A

Convert to array, reverse, and compare character by character

B

Compare characters from outside-in using indices

C

Sort the characters and compare to original

D

Create all possible substrings and check each one

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

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
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy