You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not repetition. It is called function overloading. Basically if you have a function/method and you have two different data structure types as input you have to repeat the method name for different implementations of that method and C++ will automatically use the correct implementation.
It is certainly not good practice and Templates should be used in Modern C++. But it isn't repetition.
primeFactors() method 👍
The text was updated successfully, but these errors were encountered: