r/codinginterview • • May 04 '20

Division using Recursion

Implement division without using / operator using recursion. The outline for the lesson:

  • Using a counter

  • How to create a trace table

  • Concrete case analysis using recursion diagram

  • Reducing the problem size by more than one unit

  • Recognize implicit counter in recursive code

Solution with diagrams: https://www.rubyplus.net/2020/05/division-using-recursion.html

2 Upvotes

0 comments sorted by