Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Conversation

@moadmmh
Copy link

@moadmmh moadmmh commented Jan 18, 2019

Some fast and useful math functions (explanation + complexity )

Some fast and useful math functions (explanation + complexity )
Copy link
Collaborator

@christianbender christianbender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work! I have some requests.

@@ -0,0 +1,188 @@

#include <bits/stdc++.h>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this header because it is quite linux specific and increases the compile time.

for (int i = 1; i <= n; ++i)
for (int j = i; j <= n; j += i)
divs[j].push_back(i);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a main-function with test cases for your functions?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

2 participants