This gist has been moved to https://github.com/offchan42/machine-learning-curriculum
Please see that repository instead because you can make pull requests there and later updates will be pushed there too.
===
===
#include <iostream> | |
template<int N> | |
class quick_union{ | |
public: | |
quick_union() | |
{ | |
for(int i =0; i < N; ++i){ | |
elements[i] = i; | |
} |