Share your repls and programming experiences

← Back to all posts
Back To School JavaScript
angiechangpagne (0)

Tried to reduce the runtime by a constant by breaking out of the loop sooner

Commentshotnewtop
mwilki7 (545)

It may run a constant time faster but the original time complexity will still remain.
by definition of Big O where C is a constant and N is a function of students and grades:

O(N(s,g) * C) = O(N(s,g))