0537. Complex Number Multiplication
Last updated
Was this helpful?
Last updated
Was this helpful?
https://leetcode.com/problems/complex-number-multiplication
A can be represented as a string on the form "**real**+**imaginary**i"
where:
real
is the real part and is an integer in the range [-100, 100]
.
imaginary
is the imaginary part and is an integer in the range [-100, 100]
.
i2 == -1
.
Given two complex numbers num1
and num2
as strings, return a string of the complex number that represents their multiplications.
Example 1:
Example 2:
Constraints:
num1
and num2
are valid complex numbers.