Algorithms to Compute the Sum of the Number of Digits for First N Natural Integers December 3, 2023 algorithms, math, programming languages, Python, python No Comments Given a integer n, find all the sum of the number of the digits up to n, for example, given n=5, we return 5, because 1,2,3,4,5 are all 1 … [Continue Reading...]
Teaching Kids Programming – Determine a Armstrong Number June 29, 2021 algorithms, math, python, teaching kids programming, youtube video No Comments Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return true if and only if it is an Armstrong number. The k-digit number n is … [Continue Reading...]