โ† ServiceNow questions

Multiply two numbers using recursion

Filed under ServiceNow

Multiply two positive integers a and b using only addition and subtraction. Optimize the recursion to achieve O(log(min(a, b))) time complexity.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related ServiceNow questions

Collected from public candidate posts and coding forums. Updated Nov 2026.