re: Project Euler #4 - Largest Palindrome Product VIEW POST

TOP OF THREAD FULL DISCUSSION
re: A quadratic solution in JavaScript. I'm curious if there's a way to do this in linear time: const array = new Array(900).fill(0).map((e, i) =&gt...
 

Not linear... but I think (without any actual proof 🤷‍♂️) (I'm a fraud 🤦‍♂️) that my solution does it in logarithmic time: dev.to/maxart2501/comment/b9m6

Edit: scratch that, no way it's not quadratic 😂 But then again, it's faster than the extensive check.

code of conduct - report abuse