Comment

Comment by comnetxr

n^n^n^n^n^n is an upper bound for general n, but the special case of only 2 people can be done with just 1 query.

the algorithm is just to have person A cut into two equal slices and then person B choose their favorite slice. it takes just 1 second, which is quite a speedup over the upper bound...

parent comnetxr 2 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton