Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 350 Bytes

File metadata and controls

10 lines (7 loc) · 350 Bytes

Recursive Multiply

Write a recursive function to multiply two positive integers without using the * operator. You can use addition, substraction and bit shifting, but you should minimize the number of those operations.

Solutions:

Swift

O(log n)

Installation

Run make to build and run Swift files. Or you can run .playground file.