Skip to content

Commit 57cd239

Browse files
Update 0502 - IPO.md
1 parent 2c0a542 commit 57cd239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsa-solutions/lc-solutions/0500-0599/0502-IPO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ var findMaximizedCapital = function(k, w, profits, capital) {
282282
3. **Priority Queue Initialization**: Initialize a max-heap (priority queue) to keep track of the most profitable projects that can be started with the current capital.
283283
4. **Iterative Selection**:
284284
- For up to `k` times, iterate through the sorted projects.
285-
- Push all feasible projects (capital requirement <= current capital) into the max-heap.
285+
- Push all feasible projects (capital requirement &lt;= current capital) into the max-heap.
286286
- If the max-heap is not empty, pop the project with the maximum profit and add its profit to the current capital.
287287
- Break the loop if no more projects can be started.
288288
5. **Return Result**: Return the current capital after selecting up to `k` projects.

0 commit comments

Comments
 (0)