Question: What is the time complexity of the clear() function? template void Stack ::clear() { lst.clear(); }
What is the time complexity of the clear() function?
template
void Stack
{
lst.clear();
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
