twowaits/make-pull-request

29th Sep : Write a Function in C++ to achieve below functionality

Closed this issue · 7 comments

THIS IS A DEMO ISSUE FOR HACKTOBERFEST. PR raised for this will not be counted in Hacktoberfest, you may particpate for practice.

"Sorting an Array"

Add following functionalities to it :

  • Given an array A[] consisting 0s, 1s and 2s. The task is to write a function that sorts the given array. The functions should put all 0s first, then all 1s and all 2s in last.
  • You have to do it in only 1 pass, you cannot use additional space (like array) and you can't use sorting/sorting functions.

Sample Input :
{0, 1, 2, 0, 1, 2}
{0, 1, 1, 0, 1, 2, 1, 2, 0, 0, 0, 1}

Sample Output :
{0, 0, 1, 1, 2, 2}
{0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2}

  • No need to wait for getting assigned, you can go ahead attempt the issues and raise a PR by 10 AM 30th Sep.
  • We will review any comments or PRs at 5 PM & 10 PM on 29th Sep, will give feedback if needed.

How to name your file?

  • Go to folder : "/C++/2021/"
  • Take today's date, i.e. 29thSep
  • Take your GitHUB username id like "hrithik339", "hacker-boy", etc or anything which you have.
  • File extension = ".cpp" in this issue.

Combine all 3 to get your file name : Date + "_" + Username + File Extension, ex. "26thSep_hrithik339.cpp". Create this file in above mentioned folder only "/C++/2021/".

This will ensure no file will be conflict and any number of contributors can work on the same issue.

If you have any query ask in comments below, kindly follow this pattern strictly.

You can join our Whatsapp group to get instant support : Link to Whatsapp Group

Sir please assign this task to me.. I'm efficient in C++

I have made a pull request Kindly merge !!! else follow it up!

sir please assign the task. I would like to solve it.

Sir please assign this task to me . I am good at c++.

There is no need to wait for getting assigned. I have clearly written this in issue description.

Kindly read issue properly. Reading is one part of skillset in Open Source.

Sir this issue can be solved by dutch national flag algorithm. I am currently rated 5 star at codechef with rating of 2153 and rated expert at codeforces with rating of 1776 and i can efficiently solve this problem

Sir, please assign me this issue I've earned 5 stars in C++ from Hackerrank. I'm quite confident that I can solve it.