C++ program for queue

Closed Posted 5 years ago Paid on delivery
Closed Paid on delivery

Write a function named reorder that accepts as a parameter a queue of integers that are already sorted by absolute value, and modifies it so that the integers are sorted normally. For example, if a queue variable named q stores the following elements:

front {1, -2, 4, 5, -7, -9, -12, 28, -34} back

Then the call of reorder(q); should modify it to store the following values:

front {-34, -12, -9, -7, -2, 1, 4, 5, 28} back

Constraints: You may use a single stack as auxiliary storage.

I have no idea how to use only one stack to solve this problem. Could anyone help with this program in C++? The header provided is as follows.

void reorder(Queue<int>& q){

}

C++ Programming

Project ID: #19242596

About the project

19 proposals Remote project Active 4 years ago

19 freelancers are bidding on average ₹1220 for this job

utkarshkatiyar19

Hi I'm an expert in C++ programming. I'm sure that I can easily do this programming problem related to queue. We can have a about it. Thanks..

₹2250 INR in 1 day
(325 Reviews)
7.4
xzan88

Hi, I know how to solve this using only one stack and one queue. I have over 10 years of experience in C++. Do you have some template code (where the header comes from)? Please message me.

₹1500 INR in 1 day
(115 Reviews)
6.4
fastestJohn

Hello. I'm an experienced full-time developer. I can fulfill your needs most accurately and quickly. I have enough experiences in C++. I can finish your project within 1 hr. I enjoy coding, and I value my client' More

₹2500 INR in 1 day
(51 Reviews)
6.1
marianakuzmich

Hi, I have rich experience of C++ programming. I have done job as same as your requirement before. I checked your requirement. I'm sure that I can easily do this project. I will do my best for you. best regards.

₹1250 INR in 0 days
(31 Reviews)
5.2
mostafawalker

I have very good skills using c++ with DS and OOP , If interested contact me to discuss details of your project

₹1050 INR in 1 day
(35 Reviews)
4.7
TechMagnetos

Hi there, I can do your code in less than 24 hours. I am an experienced c++ developer. I will provide you with commented, quality and efficient code. Ready to work until your complete satisfaction. PS: do have a look More

₹1250 INR in 0 days
(6 Reviews)
3.2
magadhmindslx

hello sir i am interested to do this project and, how for further conversation, than kyou regads shubham

₹1300 INR in 1 day
(0 Reviews)
1.1
PikachuCyber

I have good skills in C++,Java, Html, CSS. I've worked on many projects like online E-book store, Library management System, online Grocery shopping App. I'll try me best to fulfill all your requirements. I assure you More

₹1300 INR in 1 day
(0 Reviews)
0.0
gunjanroy327777

I am a skilled c++ programmer.I have done many projects in c++ . I can make many projects within limited time.I am willing to do this

₹630 INR in 2 days
(0 Reviews)
0.0
behrozshah99

i am student of software engineering and also done many c++ projects... i can solve your problem..thanks

₹850 INR in 2 days
(0 Reviews)
0.0
BartekSv

Hey, I have been using C++ for 3 teraz and can quickly solve this problem.

₹950 INR in 1 day
(0 Reviews)
0.0
Pulkitf101

Hello, Everyone! I can assure you I can complete your task within one week of time. I have a reasonable bid. I am a competitive order and my codechef username is pulkitgarg99. Also, I'm a talented Android, web develo More

₹1250 INR in 1 day
(0 Reviews)
0.0
vikramsreenivasa

Traverse the queue and store all the negative values on a stack. At the end of it, pop the stack values and push at the end of queue. We are not done yet. pop the queue from front and push at the back till the front el More

₹1300 INR in 1 day
(0 Reviews)
0.0
EonDevelopers

Hello there, I am a competitive programmer. I have 4 years of Experience in Data Structure and Algorithm. I Can do your task very easily and short time. I promise you will not be disappointed . Looking forward to hear More

₹600 INR in 1 day
(0 Reviews)
0.0
RagGup

I assure you best code than anyone else which would be easier for any end user to understand. Relevant Skills and Experience C++ PROGRAMMING

₹750 INR in 1 day
(0 Reviews)
0.0
HimanshuAgarwl

Hi, I can do it in few hours. I am good with C++ programming and have graduated with 4 years computer science.

₹800 INR in 1 day
(0 Reviews)
0.0
Pavankumarakella

I have good academic experience and excellent skills to complete project. I am okay to adapt to new requirements.

₹850 INR in 1 day
(0 Reviews)
0.0