Skip to content

added solution to lc:1337 #776

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

Merged
merged 7 commits into from
Mar 28, 2022
Merged

added solution to lc:1337 #776

merged 7 commits into from
Mar 28, 2022

Conversation

Dhoni77
Copy link
Contributor

@Dhoni77 Dhoni77 commented Mar 27, 2022

✅ update readme ➡️ added cpp solution
✅ added solution file


p.push_back({count, i});
}
sort(p.begin(), p.end(), cmp);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sort(p.begin(), p.end(), cmp);
sort(p.begin(), p.end());

the default sort comparator will be work, so we can remove the cmp() function

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok🤗

@yanglbme yanglbme merged commit 150cd4a into doocs:main Mar 28, 2022
Copy link

@Kosratsheikh Kosratsheikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants