Given: Two lists of integers L1 and L2; Output: The largest number that occurs in L1 but does not occur in L2, or "None" if there is no such number.

Storniert Veröffentlicht Apr 13, 2015 Bezahlt bei Lieferung
Storniert Bezahlt bei Lieferung

Given: Two lists of integers L1 and L2;

Output: The largest number that occurs in L1 but does not occur in L2, or "None" if there is no such number.

Details

To keep input and output simple, a pair of lists will be in the form of a single text file, which you will read from standard input, as in Assignment 1. In the file, each list consists of a sequence of positive integers, one integer per line, with a line containing 0 delimiting the two lists. Here is an example: "sample1" file, for which the correct answer is 5. You can use this "[login to view URL]" file, which reads these files, as starter code.

The program should output two lines. The first line should contain your student number, login id, and name (in that order, separated by spaces). The second line should contain the answer, and only the answer. (Not something like "The answer is ...", for example).

You can use any algorithm you think up or find. However, you may use only data structures and ADTs which we have studied in the class. You may not read the size of the data file, so you must use at least one dynamic data structure.

For data structures and ADTs, you may use your own implementation or some other publicly available implementation. You must explicitly state, in comments in your source code, the source of any code you use which was not written entirely by you. You may also use C++ STL classes which implement ADTs we have studied in class.

You may not use a bit-vector set reprsentation, or any similar representation (i.e., where you record information about the integer i in a cell A[i] of an array, vector or similar).

Loading the lists into big arrays and sorting these is not an acceptable solution.

Your solution must be written in C++, include an appropriate makefile, and compile and run correctly on the CSIL Linux workstations.

Submit your solution on line as usual. Your submission should be a zip file of a the contents of a single folder, containing all your source code, any other files needed to compile your program. Running "make all" in the folder should generate an executable called "a4" which is your complied solution. The folder must contain a text filed called "[login to view URL]". It should contain a short description of your method, and clear information about any libraries, downloaded code, etc. which you have used (any code that contributes to your solution but which was not written by you, and not used previously in the course). For most students, this should be very short. Your main function should be in a filed called "[login to view URL]".

Both your [login to view URL] file and your [login to view URL] file must begin with a line or comment line containing your student number, login id, and name.

If you use code which is not your own, and not part of the STL, then:

It must be from a site which is (intentionally) public;

I should be able to get it myself, from your reference;

It must not have been produced by a student in this or any similar course, by someone helping such students, by someone hired for the purpose, etc. If in doubt, ask.

Your solution must be correct. In the spirit of the course, you should also aim for a solution that is efficient in terms of both computational time and memory consumed, and fast in practice. There is no specific requirement regarding time or space complexity or actual speed, but your solution should also not be unreasonably inefficient. If in doubt, ask.

C++ Programmierung

Projekt-ID: #7479724

Über das Projekt

14 Vorschläge Remote Projekt Aktiv Apr 15, 2015

14 Freelancer bieten im Durchschnitt $30 für diesen Job

vano101

It's possible to complete it in about 2 hrs .........................................................

$24 USD in 1 Tag
(949 Bewertungen)
7.3
urmate

A proposal has not yet been provided

$20 USD in 1 Tag
(244 Bewertungen)
6.6
szymszteinsl

Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to start !Ready to s Mehr

$50 USD in 1 Tag
(63 Bewertungen)
6.7
HannanDeveloper

I have more than 4+ years experience in C++ programming and it was my major during my Graduation and can do this type of task not more than in 4-5 hours

$18 USD in 1 Tag
(22 Bewertungen)
4.9
xuhaijiao

hi, please check my review, i am good at such linux projects and i have done many similar like this hi i have 7 years c/c++/java/php/.net database programming experience under windows, linux system, smartphone,i can d Mehr

$23 USD in 1 Tag
(20 Bewertungen)
4.1
hoangduong97

Hello, I am experienced and specialized in C and C++ programing. I have taken part in many competitions, including national competition, in which I won 2nd prize. I always work with responsibility and quality. Please c Mehr

$15 USD in 0 Tagen
(21 Bewertungen)
3.4
ohahaha

Hi, thank u for considering me. I have more than 4 years experience of C++. I place my bid for the lowest price because I hope to have long-term cooperation with u. if u have any questions, feel free to leave messages.

$15 USD in 0 Tagen
(8 Bewertungen)
2.9
SharjeelSohail

A proposal has not yet been provided

$100 USD in 1 Tag
(4 Bewertungen)
2.9
haddadiali2

A proposal has not yet been provided

$45 USD in 1 Tag
(0 Bewertungen)
0.0
passionkk

一个有效的提议尚未被提供

$25 USD in 1 Tag
(0 Bewertungen)
0.0
EvolutionProgr

It'll be quite cheap for you and comfortable for me because I've already done projects like this. It is a good proposal.

$25 USD in 3 Tagen
(0 Bewertungen)
0.0
dk2k

A proposal has not yet been provided

$25 USD in 1 Tag
(0 Bewertungen)
0.0
ahmedusama94

I am a student. currently I study data structures. I finished harder projects at no time . it will be a good experience. I think it will take 2 hours to finish it. you have my word

$20 USD in 0 Tagen
(0 Bewertungen)
0.0