One Byte Explainer: Big O notation

David Haley - Jun 23 - - Dev Community

This is a submission for DEV Computer Science Challenge v24.06.12: One Byte Explainer.

Explainer

My code runs in seconds for 3 inputs but takes hours for 100, why? Consider: 3 people can all shake hands in 3 exchanges. But for 100 people (33x) it takes 4,950 (1650x)! Big O math represents runtime’s growth at scale by only keeping its main factors.

Additional Context

TEAM MEMBERS: @dchaley @lynnlangit

. . . . . . . . . . . . . . . . . . . . . .