What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-22 12:29:02
stack implementation
#include <iostream> using namespace std; int stack[100], n=100, top=-1; void push(int val) { if(top>=n-1) cout<<"Stack Overflow"<<endl; else { top++; ... Add solution -
Javascript 2021-09-21 17:01:02
with javascript, can html markup be added in a text string?
const text = 'This is a test to see whether nested style spans work properly.' const styling = [ {start: 22, end: 54, type: "strong"}, {start: 30, end: 36, type: "a"}, {start: 37, end: 48, type: "em"}, {start: 43, end... Add solution -
C++ 2021-09-12 02:36:04
cpp stack
#include <iostream> using namespace std; int stack[100], n=100, top=-1; void push(int val) { if(top>=n-1) cout<<"Stack Overflow"<<endl; else { top++; ... Add solution -
C++ 2021-09-09 04:44:02
write a program to implement stack using array
#include <iostream> using namespace std; int stack[100], n=100, top=-1; void push(int val) { if(top>=n-1) cout<<"Stack Overflow"<<endl; else { top++; ... Add solution -
Shell/Bash 2021-08-31 22:46:04
bash: docker-compose: command not found
#From Stackoverflow sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose sudo chmod +x /u... Add solution