Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Decomposing a Factorial into Large Factors. Parent comment
The basic idea is to "pair" the lowest numbers with the highest ones - sort of pushing everything towards the middle values
Like I said, its naive greedy and non-optimal - otherwise time would be linear.
There are no comments on this comment yet.
The basic idea is to "pair" the lowest numbers with the highest ones - sort of pushing everything towards the middle values
Like I said, its naive greedy and non-optimal - otherwise time would be linear.