Find Jobs
Hire Freelancers

Simple Data structure assignment

$30-250 USD

Completed
Posted about 12 years ago

$30-250 USD

Paid on delivery
Homework Definition: Merging two arrays which are given in files using queues and a stack. User will enter three files names to run the program from terminal. First two parameters will represent input file’s names and last parameter will be the file name which will include merged struct’s content. (First two input files are attached.) . ./odev [login to view URL] [login to view URL] [login to view URL] First two files include sorted numbers. These numbers are ordered decreasingly. The purpose is to merge these numbers increasingly. The numbers in “[login to view URL]” will be read and these numbers will be pushed in a queue called Q1. Then similarly, numbers in “[login to view URL]” will be read and these numbers will be pushed in a queue called Q2. After this, these queues will be popped and merged into a stack in a sorted way. At the end of merging, the bottom of the stack must include the number with the highest value, and the top of the stack must include the smallest one. If you read equal values from queues, you should push one of them to the stack. At the end of the program, you will pop from the stack and write these values to the “[login to view URL]”. Also, you should print out your queues’ and the stack’s content to the screen as follows; Q1={555555, 444, 33} Q2={5000, 1344, 130, 123, 56, 33, 22, 11} S={11, 22, 33, 56, 123, 130, 444, 1344, 5000, 555555} Note that number 33 is included once in the stack.
Project ID: 1556021

About the project

4 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I am ready to do the job
$35 USD in 3 days
5.0 (30 reviews)
5.2
5.2
4 freelancers are bidding on average $54 USD for this job
User Avatar
Hi, I am ready.
$30 USD in 1 day
5.0 (2 reviews)
1.6
1.6

About the client

Flag of TURKEY
new york, Turkey
5.0
6
Payment method verified
Member since Mar 25, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.