We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Other Concepts
- C++ Class Templates
- Discussions
C++ Class Templates
C++ Class Templates
Sort by
recency
|
225 Discussions
|
Please Login in order to post a comment
I think all the optimizations are done and still failing due to time limits. Who is supposed to help here?
Easy to understand:
template class AddElements { T element; public: AddElements (T arg) {element=arg;} T add (T arg) {return element+=arg;} T concatenate (T arg) {return element+=arg;}
};
💡C++ | Fast & Easy Solution🔥