Algorithms to Sum using Distinct Positive Factorial Numbers January 8, 2021 algorithms, c / c++, DFS, greedy algorithm, math No Comments Given a positive integer n, return whether n can be written as the sum of distinct positive factorial numbers. Example 1 Input n = 31 Output true Explanation Since … [Continue Reading...]
Teaching Kids Programming – Two Algorithms to Compute Inverse Factorials November 30, 2020 algorithms, math, python, teaching kids programming, youtube video No Comments Teaching Kids Programming: Videos on Data Structures and Algorithms The factorial of a number n is defined as n! = n * (n – 1) * (n – 2) … [Continue Reading...]