Skip to content

Instantly share code, notes, and snippets.

View shubhamnita2020's full-sized avatar
🎯
Focusing

SHUBHAM MAURYA shubhamnita2020

🎯
Focusing
View GitHub Profile
@shubhamnita2020
shubhamnita2020 / cheatsheet.cpp
Created March 5, 2020 05:04 — forked from satwikkansal/cheatsheet.cpp
C++ STL cheatsheet for competitive progrmming
/*
This a header file that includes every standard library.
You can use it to save time.
NOTE: This header file may not be recognized by compilers
other than gcc.
*/
#include <bits/stdc++.h>
/*
//Use this if the above header file doesn't work.
@shubhamnita2020
shubhamnita2020 / Stack_ArrayImplementation.C
Created June 24, 2019 19:42 — forked from mycodeschool/Stack_ArrayImplementation.C
This is a basic array based implementation of stack data structure in C.
// Stack - Array based implementation.
// Creating a stack of integers.
#include<stdio.h>
#define MAX_SIZE 101
int A[MAX_SIZE]; // integer array to store the stack
int top = -1; // variable to mark top of stack in array
// Push operation to insert an element on top of stack.