Skip to content

sukumarch3/array-problems-java

Repository files navigation

Programming

  1. CountingPairs.java

Sample Input: 6 1 1 2 2 3 3 1

Sample Output: 2

  1. SuperStack.java

Sample Input: 4 push 1 push 2 inc 1 1 pop

Sample Output: 1 2 3 2

  1. UniqueArrayElementsSum.java

Sample Input: 5 1 3 2 4 7 Sample Output: 17

Note:

  1. To run the above programs need to set the Java Path in your machine,you can use this below link https://docs.oracle.com/javase/tutorial/essential/environment/paths.html
  2. To compile use this below command javac fileName.java
  3. To run a program use this below command java fileName

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages