GreedyExplained
Egyptian Fraction
Repeatedly subtract the largest unit fraction.
Time
O(log n) terms
Extra space
O(1)
Use it for
Number-theory curiosity.
Repeatedly subtract the largest unit fraction.
Time
O(log n) terms
Extra space
O(1)
Use it for
Number-theory curiosity.