- Time:O(e + eq) \to O(e + q), where e = |\texttt{equations}| and q = |\texttt{queries}|
- Space:O(e)
C++ |
---|
|
JAVA |
---|
|
Python |
---|
|
C++ |
---|
|
JAVA |
---|
|
Python |
---|
|