This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.github.kimmking; | |
import java.lang.*; | |
class QuickSort | |
{ | |
public static void main (String[] args) throws java.lang.Exception | |
{ | |
int[] array = new int[]{5,1,6,2,4,3,8,9,0,10}; | |
quickSort(array,0, array.length-1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var evalRPN = function(tokens) { | |
var stack = []; | |
while(tokens.length > 0){ | |
var c = tokens.shift(); | |
if(c == "+"){ | |
c = add(stack); | |
}else if(c == "-"){ | |
c = sub(stack); | |
}else if(c == "*"){ | |
c = mul(stack); |