View gist:b80d59829ede802cc12bde56f528f788
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); |
View gist:517d93db764c86a1db0ffde3280e6f8d
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); |