File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ using std::priority_queue;
10
10
using std::vector;
11
11
namespace leetcode_test ::ipo {
12
12
export class Solution {
13
- public:
14
- int findMaximizedCapital (int k, int w, vector<int > &profits,
15
- vector<int > &capital) {
13
+ public:
14
+ int findMaximizedCapital (int k, int w, vector<int >& profits,
15
+ vector<int >& capital)
16
+ {
16
17
int n = profits.size ();
17
18
int curr = 0 ;
18
19
priority_queue<int , vector<int >, less<int >> pq;
Original file line number Diff line number Diff line change @@ -7,29 +7,32 @@ using std::future;
7
7
export module leetcode_test.print_in_order.Foo;
8
8
namespace leetcode_test ::print_in_order {
9
9
export class Foo {
10
- private:
10
+ private:
11
11
std::promise<void > outpromise2;
12
12
std::promise<void > outpromise3;
13
13
14
- public:
15
- Foo () {}
14
+ public:
15
+ Foo () { }
16
16
17
- void first (function<void ()> printFirst) {
17
+ void first (function<void ()> printFirst)
18
+ {
18
19
19
20
// printFirst() outputs "first". Do not change or remove this line.
20
21
printFirst ();
21
22
outpromise2.set_value ();
22
23
}
23
24
24
- void second (function<void ()> printSecond) {
25
+ void second (function<void ()> printSecond)
26
+ {
25
27
future<void > fu = outpromise2.get_future ();
26
28
fu.get ();
27
29
// printSecond() outputs "second". Do not change or remove this line.
28
30
printSecond ();
29
31
outpromise3.set_value ();
30
32
}
31
33
32
- void third (function<void ()> printThird) {
34
+ void third (function<void ()> printThird)
35
+ {
33
36
future<void > fu = outpromise3.get_future ();
34
37
fu.get ();
35
38
// printThird() outputs "third". Do not change or remove this line.
You can’t perform that action at this time.
0 commit comments