Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #122

Merged
merged 1 commit into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ipo/index.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ using std::priority_queue;
using std::vector;
namespace leetcode_test::ipo {
export class Solution {
public:
int findMaximizedCapital(int k, int w, vector<int> &profits,
vector<int> &capital) {
public:
int findMaximizedCapital(int k, int w, vector<int>& profits,
vector<int>& capital)
{
int n = profits.size();
int curr = 0;
priority_queue<int, vector<int>, less<int>> pq;
Expand Down
15 changes: 9 additions & 6 deletions print-in-order/index.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,32 @@ using std::future;
export module leetcode_test.print_in_order.Foo;
namespace leetcode_test::print_in_order {
export class Foo {
private:
private:
std::promise<void> outpromise2;
std::promise<void> outpromise3;

public:
Foo() {}
public:
Foo() { }

void first(function<void()> printFirst) {
void first(function<void()> printFirst)
{

// printFirst() outputs "first". Do not change or remove this line.
printFirst();
outpromise2.set_value();
}

void second(function<void()> printSecond) {
void second(function<void()> printSecond)
{
future<void> fu = outpromise2.get_future();
fu.get();
// printSecond() outputs "second". Do not change or remove this line.
printSecond();
outpromise3.set_value();
}

void third(function<void()> printThird) {
void third(function<void()> printThird)
{
future<void> fu = outpromise3.get_future();
fu.get();
// printThird() outputs "third". Do not change or remove this line.
Expand Down