Tag:union-find

  • leetcode399. Evaluate Division

    Time:2020-1-7

    Subject requirements Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). Given some queries, return the answers. If the answer does not exist, return -1.0. Example: Given a / b = 2.0, b / c […]