Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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);
}}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #stack
ADD COMMENT
Topic
Name
5+4 =