https://leetcode.com/problems/evaluate-division/public class Solution { private Map mp; private class Item { public String str; public double prop; public Item(String s, double p) { str = s; prop = p; } } public double[] calcEquation(String[][] equations, double[] values, String[][] queries) { mp = new HashMap(); for (int i=0; i