Skip to content

Instantly share code, notes, and snippets.

Avatar

Rahul Gupta rahulgupta-jsr

View GitHub Profile
@rahulgupta-jsr
rahulgupta-jsr / min_stack.cpp
Last active May 13, 2018
Stack with const time get_min() function
View min_stack.cpp
#include <cstdlib>
#include <iostream>
#include <stack>
class CustomStack {
public:
void push(int num);
void pop();
int top();
View test01.c
#include <stdio.h>
struct container {
int var1;
char *var2;
void (*repr)(struct container *c);
};
void dumper(struct container *c) {
printf("var1=[%d]\t", c->var1);
You can’t perform that action at this time.