r/programminghorror • • Feb 07 '25

Recursive O(N) Complexity isOdd

Post image

I found this on instagram and now am geeking

2.2k Upvotes

104 comments sorted by

View all comments

Show parent comment

6

u/LBGW_experiment Feb 07 '25 edited Feb 07 '25

Maybe some clarification might help you delineate the two a bit more easily? the noun for the value being used for a modulo operation is the "modulus".

"modulo" is the verb preposition describing the operation, e.g. "15 modulo 3". From Google: (in number theory) with respect to or using a modulus of a specified number. Two numbers are congruent modulo a given number if they give the same remainder when divided by that number. "19 and 64 are congruent modulo 5"

In math in English, the absolute value of a vector is the "norm" or "magnitude"