Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
panda88888
on Oct 18, 2018
|
parent
|
context
|
favorite
| on:
Ask HN: What's your favorite elegant/beautiful alg...
His approach is the same as yours. As soon as the algorithm sees a character from second string where the value for that char in the array is zero, the second string is not an anagram of first string and can return false immediately.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: