You are given a equations and an array of real numbers values, where equations[i] = [A_i, B_i] and values[i] represent the equation A_i B_i values[i].
Return true if there is a contradiction in the given equations, or false otherwise.
Constraints:
equations.length
equations[i].length
A_i.length, B_i.length
A_i and B_i consist of lowercase English letters.
equations.length values.length
values[i]
values[i] has a maximum of
You are given a equations and an array of real numbers values, where equations[i] = [A_i, B_i] and values[i] represent the equation A_i B_i values[i].
Return true if there is a contradiction in the given equations, or false otherwise.
Constraints:
equations.length
equations[i].length
A_i.length, B_i.length
A_i and B_i consist of lowercase English letters.
equations.length values.length
values[i]
values[i] has a maximum of