How to Create Your Own BigInt Class in Java — Data Structures and Algorithms Practice
Published in
6 min readNov 30, 2020
When I want to practice for interviews, I like to do exercises on CodeWars and LeetCode. I recently found a kata on CodeWars that I really enjoyed. The problem was to create a factorial calculator that returns the number as a String. So I thought to myself, what’s so difficult about that? The factorial function can be done in just a couple of lines.
So I wrote out the standard recursive factorial function and converted it to a String.