Skip to content
StackDecode
GreedyExplained

Egyptian Fraction

Repeatedly subtract the largest unit fraction.

Time

O(log n) terms

Extra space

O(1)

Use it for

Number-theory curiosity.

An animated walkthrough for this algorithm isn’t built yet. The summary above explains the idea; see the related animated algorithms below to practise the same technique.