Commit e93f71c
Changed files (3)
src
01
src/01/01b/min_stack.h
@@ -10,7 +10,7 @@ typedef struct {
} Stack;
Stack *initialize();
-int size(Stack *self);
void push(Stack *self, int data);
-int min(Stack *self);
int pop(Stack *self);
+int size(Stack *self);
+int min(Stack *self);
src/01/01b/min_stack_test.c
@@ -1,17 +1,6 @@
#include <cgreen/cgreen.h>
#include "min_stack.h"
-/*
- Design and implement a `MinStack` data structure that can store
- comparable elements and supports the stack operations:
-
- * `push(x)`
- * `pop()`
- * `size()`
- * `min()`
- All operations should run in constant time.
-*/
-
Describe(MinStack);
BeforeEach(MinStack){ }
AfterEach(MinStack){ }
src/01/01b/README.md
@@ -1,4 +1,4 @@
-# Learning Profile for Assignment #1 - Question #1b - Computer Science 272: Data Structures and Algorithms
+# Learning Profile for Assignment #1 - Question #6 - Computer Science 272: Data Structures and Algorithms
Name: Mo Khan
Student ID: 3431709