-
Notifications
You must be signed in to change notification settings - Fork 512
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
C++ solution for Sleepy Cow Sorting #5107
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall looks solid, i think explaining the solution above the code would be good tho
for more information, see https://pre-commit.ci
solutions/gold/usaco-898.mdx
Outdated
@@ -18,7 +18,94 @@ Note: The video solution might not be the same as other solutions. Code in C++. | |||
|
|||
### Using Segment Tree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this header is no longer needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check now, ig it is just about fine
Place an "x" in the corresponding checkbox if it is done or does not apply to this pull request.
closes: #5106
AC (BIT)
![Screenshot from 2025-02-07 14-38-04](https://private-user-images.githubusercontent.com/79394137/410843903-e6c24436-fe2a-4050-a268-6c7c573e650a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODc5NjksIm5iZiI6MTczOTQ4NzY2OSwicGF0aCI6Ii83OTM5NDEzNy80MTA4NDM5MDMtZTZjMjQ0MzYtZmUyYS00MDUwLWEyNjgtNmM3YzU3M2U2NTBhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIzMDEwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2ODA1ZGRkOGMxMjQ3ZDBjZjIwNmZkYjEwMTAyZjFlNmQ3NTNlYjJjOTA1NjY5OWEwNTZhZjhlMDE0Y2RhZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ie7rmlOGz6mTeG9gN9FTckSQBLBHeUO2uhOKQnPj22s)
AC (Seg Tree)
![Screenshot from 2025-02-07 14-38-24](https://private-user-images.githubusercontent.com/79394137/410843929-16a83d26-5448-4e73-8e99-dd2bff3a02b2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0ODc5NjksIm5iZiI6MTczOTQ4NzY2OSwicGF0aCI6Ii83OTM5NDEzNy80MTA4NDM5MjktMTZhODNkMjYtNTQ0OC00ZTczLThlOTktZGQyYmZmM2EwMmIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDIzMDEwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3ZDZhNzIwOWEwYWY3ZjQyYTcwNjRiN2FjNjI5YjE3YmRmYTVhNzU4ZjEzMjBiM2I2Yjc5ZDVlZDYwYjc3YWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.IlavZTAfpsePzujMjaNhiLip2jntEJpZaHOCoByXWJk)