Skip to content

Commit 9228a11

Browse files
committed
Fixed readme
1 parent 8fbb68d commit 9228a11

File tree

1 file changed

+6
-59
lines changed
  • src/main/java/g3401_3500/s3494_find_the_minimum_amount_of_time_to_brew_potions

1 file changed

+6
-59
lines changed

src/main/java/g3401_3500/s3494_find_the_minimum_amount_of_time_to_brew_potions/readme.md

+6-59
Original file line numberDiff line numberDiff line change
@@ -18,65 +18,12 @@ Return the **minimum** amount of time required for the potions to be brewed prop
1818

1919
**Explanation:**
2020

21-
Potion Number
22-
23-
Start time
24-
25-
Wizard 0 done by
26-
27-
Wizard 1 done by
28-
29-
Wizard 2 done by
30-
31-
Wizard 3 done by
32-
33-
0
34-
35-
0
36-
37-
5
38-
39-
30
40-
41-
40
42-
43-
60
44-
45-
1
46-
47-
52
48-
49-
53
50-
51-
58
52-
53-
60
54-
55-
64
56-
57-
2
58-
59-
54
60-
61-
58
62-
63-
78
64-
65-
86
66-
67-
102
68-
69-
3
70-
71-
86
72-
73-
88
74-
75-
98
76-
77-
102
78-
79-
110
21+
| Potion Number | Start time | Wizard 0 done by | Wizard 1 done by | Wizard 2 done by | Wizard 3 done by |
22+
|--------------|-----------|------------------|------------------|------------------|------------------|
23+
| 0 | 0 | 5 | 30 | 40 | 60 |
24+
| 1 | 52 | 53 | 58 | 60 | 64 |
25+
| 2 | 54 | 58 | 78 | 86 | 102 |
26+
| 3 | 86 | 88 | 98 | 102 | 110 |
8027

8128
As an example for why wizard 0 cannot start working on the 1<sup>st</sup> potion before time `t = 52`, consider the case where the wizards started preparing the 1<sup>st</sup> potion at time `t = 50`. At time `t = 58`, wizard 2 is done with the 1<sup>st</sup> potion, but wizard 3 will still be working on the 0<sup>th</sup> potion till time `t = 60`.
8229

0 commit comments

Comments
 (0)