Java 1.8
OS Debian 9
Linux 4.9.0-8-amd64
Compile the 3 source files
MinimumUniqueSum.javaSuperStack.javaCountingPairs.java
java MinimumUniqueSum- Enter the no. of elements in the list
- Enter each element followed by an
<enter>
3
1
2
2
The above example shows 3 inputs
java SuperStack- Enter the no. of operations
- Type each operation in a new line. If invalid command is typed, the program terminated
5
push 4
push 3
pop
push 4
inc 2 1
java CountingPairs- Enter no of elements in the list
- Enter each element and the value of
kas specified in the question.
6
1
1
2
2
3
3
1