Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
glangdale
on April 24, 2018
|
parent
|
context
|
favorite
| on:
Things I Learned from a Job Hunt for a Senior Engi...
I'm very confused by this answer. Have I missed a joke? Wouldn't the expected response be to iterate over half the string comparing the characters to the other half (in reverse order)? The criteria you provide seems to suggest aabbc is a palindrome.
Bahamut
on April 24, 2018
[–]
Ah sorry, I misunderstood the question - the one I've seen usually is if a string could be rearranged as a palindrome ha.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: