Skip to content

Instantly share code, notes, and snippets.

import java.util.Stack;
/**
* @author humayun
*
* https://leetcode.com/problems/evaluate-reverse-polish-notation/
*
*/
public class ReversePolishNotation {
import java.util.HashMap;
import java.util.Map;
/**
* @author humayun
* http://www.programcreek.com/2014/05/leetcode-isomorphic-strings-java/
* https://leetcode.com/problems/isomorphic-strings/
* "egg" & "add" -> true [(e,a), (g,d), (g,d)]
* "foo" & "bar" -> false [(f,b), (o,a), (o,r)]
@humayun0156
humayun0156 / ShuntingYardAlgo.java
Last active March 11, 2016 13:41
Shunting-yard algorithm
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
/**
* @author humayun
*
* https://en.wikipedia.org/wiki/Shunting-yard_algorithm
*
@humayun0156
humayun0156 / web.xml
Created April 6, 2015 10:18
A sample web.xml file
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!-- ========================================================== -->
<!-- General -->
<!-- ========================================================== -->
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}