Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
IPO
Bookmark
Input
Example 1
Example 2
Example 3
Custom
k
=
2
,
w
=
0
,
profits
=
[1, 2, 3]
,
capital
=
[0, 1, 1]
projects (capital, profit)
c=0
+1
c=1
+2
c=1
+3
fund the most profitable affordable project, k times
algo
master
.
io
Step:
Start: pick up to 2 projects, always take the biggest affordable profit
0 / 7
Input
Example 1
Example 2
Example 3
Custom
k
=
2
,
w
=
0
,
profits
=
[1, 2, 3]
,
capital
=
[0, 1, 1]
0 / 7
projects (capital, profit)
c=0
+1
c=1
+2
c=1
+3
fund the most profitable affordable project, k times
algo
master
.
io
Step:
Start: pick up to 2 projects, always take the biggest affordable profit