Skip to content

Commit d1daf0c

Browse files
refactor 537
1 parent f68720e commit d1daf0c

File tree

1 file changed

+0
-21
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-21
lines changed

Diff for: src/main/java/com/fishercoder/solutions/_537.java

-21
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,6 @@
22

33
import java.util.stream.Stream;
44

5-
/**
6-
* 537. Complex Number Multiplication
7-
*
8-
* Given two strings representing two complex numbers.
9-
10-
You need to return a string representing their multiplication. Note i2 = -1 according to the definition.
11-
12-
Example 1:
13-
Input: "1+1i", "1+1i"
14-
Output: "0+2i"
15-
Explanation: (1 + i) * (1 + i) = 1 + i2 + 2 * i = 2i, and you need convert it to the form of 0+2i.
16-
17-
Example 2:
18-
Input: "1+-1i", "1+-1i"
19-
Output: "0+-2i"
20-
Explanation: (1 - i) * (1 - i) = 1 + i2 - 2 * i = -2i, and you need convert it to the form of 0+-2i.
21-
22-
Note:
23-
The input strings will not have extra blank.
24-
The input strings will be given in the form of a+bi, where the integer a and b will both belong to the range of [-100, 100]. And the output should be also in this form.
25-
*/
265
public class _537 {
276

287
public static class Solution1 {

0 commit comments

Comments
 (0)