Arrays in Python: Arbitrary Precision Increment

Опубликовано: 28 Сентябрь 2024
на канале: LucidProgramming
5,907
108

In this video, we will be considering the following:

Given:
An array of non-negative digits that represent a decimal integer.

Problem:
Add one to the integer. Assume the solution still works even if implemented in a language with finite-precision arithmetic.

We will cover how to solve this problem algorithmically, and then code up a solution to this question in Python.

The software written in this video is available at:
https://github.com/vprusso/youtube_tu...

Do you like the development environment I'm using in this video? It's a customized version of vim that's enhanced for Python development. If you want to see how I set up my vim, I have a series on this here:
http://bit.ly/lp_vim

If you've found this video helpful and want to stay up-to-date with the latest videos posted on this channel, please subscribe:
http://bit.ly/lp_subscribe