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 cpp-stl-cheatsheet.md #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prototype47
Copy link

@prototype47 prototype47 commented Oct 27, 2022

Change Summary

Provide summary of changes with issue number if any.

Checklist

If you haven't fulfilled the below requirements or even delete the entire checklist, your PR won't be reviewed and will be closed without notice.

General

  • This Pull Request is all my own work. (You'll be blacklisted if you are caught for plagiarism.)
  • I've read CONTRIBUTING.md
  • I've made some valid changes to the CheatSheet, and they are not just minor changes.

Changes

Note: To mark the checkbox, put an x inside the [ ] (like this: [x]).

@aryankashyap7
Copy link
Owner

@prototype47 These are some really small changes, So I cant issue the hacktoberfest tag over here.

But if you are interested in contributing to this specific cheat sheet, you can add the a tabular format of time and space complexity of various methods within the stl datastructures. That would be marked as a valid contribution.

eg:-

Vectors Methods and Time Complexity

Methods Name Description Time Complexity Space Complexity
push_back() Inserts an element at the end of the vector O(1) O(1)
pop_back() Removes the last element of the vector O(1) O(1)

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

Successfully merging this pull request may close these issues.

None yet

2 participants