Skip to content

Commit f13300b

Browse files
authored
Update 952._Largest_Component_Size_by_Common_Factor.md
1 parent 291399a commit f13300b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Leetcode_Solutions/Python/952._Largest_Component_Size_by_Common_Factor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Note:
4949

5050

5151
Using the input of first example,We can firstly do Prime factor decomposition for each number in A,
52-
then we can get the map:{2: [4, 6], 3: [6, 15], 5: [15, 35], 7: [35]}),
52+
then we can get the ```map:{2: [4, 6], 3: [6, 15], 5: [15, 35], 7: [35]})```,
5353
in which values are all multiples of the key(must be prime).
5454
Then we can regard the first multiple as the root of all the multiples,
55-
connect each multiple with the root. In this example, we connect 6 with 4(root), connect 15 with 6(root),
56-
connect 35 with 15(root), because there is only one multiple in 7: [35], so no connection.
55+
connect each multiple with the root. In this example, we ```connect 6 with 4(root)```, ```connect 15 with 6(root)```,
56+
```connect 35 with 15(root)```, because there is only one multiple in ```7: [35]```, so no connection.
5757
At the end, we can get the largest size 4, which is the result. The root of all the numbers in A is the number 4.
5858

5959

0 commit comments

Comments
 (0)