MCPcopy Index your code
hub / github.com/careercup/ctci / main

Method main

java/Chapter 3/Question3_3/Question.java:4–13  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2
3public class Question {
4 public static void main(String[] args) {
5 int capacity_per_substack = 5;
6 SetOfStacks set = new SetOfStacks(capacity_per_substack);
7 for (int i = 0; i < 34; i++) {
8 set.push(i);
9 }
10 for (int i = 0; i < 34; i++) {
11 System.out.println("Popped " + set.pop());
12 }
13 }
14}

Callers

nothing calls this directly

Calls 2

pushMethod · 0.95
popMethod · 0.95

Tested by

no test coverage detected