Member Avatar

hello fellow programmers, i am doing an assignment for class and i am having a bit of trouble. So the assignments reads Given two sorted (in ascending order) lists of size M and N, write an O(M+N) algorithm to find the sorted (also in ascending order) union of the two lists. Assume each list contains no duplicate items. I know that i want to use a MergeSort to merge the two lists together, i just dont know how to write in code. So far i have: template<typename T> list<T> listUnion(const list<T>& one, const list<T>& two) { list<T> result; std::list<T>::iterator modifIter; …

Member Avatar
+0 forum 3
Member Avatar

Hello, I am using a php function to merge 2 pdfs and it works great. <?php include 'PDFMerger.php'; $pdf = new PDFMerger; $pdf->addPDF('testFile5.pdf', 'all') ->addPDF('testFile57.pdf', 'all') ->merge('download', 'samplepdfs/TEST2.pdf'); ?> I get a merged pdf as soon as the page loads. I need the ability to make this merge happen when the user clicks a button, and I am stumped. Im a bit of a php nooby so please excuse my ignorance. Further more I need the user to be able to select or click and drag over pdfs to be merged. Any help is MORE than appreciated.

Member Avatar
+0 forum 19
Member Avatar

Say I have a list of lists as follows (which I do): [CODE][['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3'], ['Value1', 'Value2', 'Value3']][/CODE] What I want to accomplish is if in any list Value1 & Value2 equal the Value1 & Value2 of any other list, I want to merge those two lists so only one is preserved and the two values for Value3 are summed (then append the list back to the list of lists). I'm thinking along the lines of looping through the lists within the list, comparing the lists for matches where [i] & [i + 1] …

Member Avatar
+0 forum 7
Member Avatar

Using Data1.txt and Data2.txt, create two control break reports. The first should break on name and report the highest frequency style or styles. Send the report to result1.txt. Include appropriate headers. The second should break on style and report the total quantity ordered for that style. Send the report to result2.txt. Include appropriate headers. Use functions called Merge, Sort_Style, CBR_Name, and CBR_Style to simplify main. Use structs as needed. Also, you must use arrays of size 100 to input your data into and to store your merged data.

Member Avatar
-3 forum 5

The End.