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

Vector Sort #484

Open
itsooof opened this issue Oct 16, 2021 · 2 comments
Open

Vector Sort #484

itsooof opened this issue Oct 16, 2021 · 2 comments
Labels
Level 1 10 Points Online Question belongs to online platforms

Comments

@itsooof
Copy link
Contributor

itsooof commented Oct 16, 2021

Enter your question -

You are given N integers. Sort the N integers and print the sorted order.
Store the N integers in a vector. Vectors are sequence containers representing arrays that can change in size.

Declaration:

vectorv; (creates an empty vector of integers)
Size:

int size=v.size();
Pushing an integer into a vector:

v.push_back(x);(where x is an integer.The size increases by 1 after this.)
Popping the last element from the vector:

v.pop_back(); (After this the size decreases by 1)
Sorting a vector:

sort(v.begin(),v.end()); (Will sort all the elements in the vector)

Enter link to the question(if question belongs to any online platform) -

https://www.hackerrank.com/challenges/vector-sort/problem

Tags for the question(eg - Array, Basic, Stack, etc.) -

Sorting

@itsooof
Copy link
Contributor Author

itsooof commented Oct 16, 2021

Please assign this issue to me @SarthakKeshari

@SarthakKeshari
Copy link
Owner

SarthakKeshari commented Oct 17, 2021

@itsooof,
Kindly add your solution to "hackerrank" folder.
Deadline - 18/10/2021

This Issue will only be counted towards ranking criteria of this repository.

Gentle advice-
A bit more tough questions would be appreciated for Hacktoberfest tag.

@SarthakKeshari SarthakKeshari added Level 1 10 Points Online Question belongs to online platforms labels Oct 17, 2021
@itsooof itsooof removed their assignment Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Level 1 10 Points Online Question belongs to online platforms
Projects
None yet
Development

No branches or pull requests

2 participants