Answers for "implementing stack using c++"

C++
1

stack c++

#include <bits/stdc++.h> 

stack<int> stk;
stk.push(5);
int ans = stk.top(5); // ans =5
stk.pop();//removes 5
Posted by: Guest on November-02-2020
0

stack in c++

#take input 2D vector

vector<vector<int> > v;
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
v[i].push_back(data);
}}
Posted by: Guest on July-09-2021

Code answers related to "implementing stack using c++"

Browse Popular Code Answers by Language