The Startup
Published in

The Startup

How to Create Your Own BigInt Class in Java — Data Structures and Algorithms Practice

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store