Skip to content

Instantly share code, notes, and snippets.

View kimmking's full-sized avatar
:octocat:
On OpenSource Development

kimmking kimmking

:octocat:
On OpenSource Development
View GitHub Profile
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);
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);