The task is C++. Transportation price and weight of goods
First, the natural number (compatibility of the car) is entered.In each following line there is always a pair of natural numbers (weight of the goods, the price of its transportation).A vehicle with full load capacity may carry any quantity of items at the same time, but the amount of their weights shall not exceed the load capacity.For such transport, it receives the amount of individual prices of the goods carried.For simplicity we will not deal with units - just all the weight and power in the same units and all the prices in the same currency (no matter which).The task is to create the function int find_max (vector items, int max_load), which finds the best price you can get for one download.The type of element in the function parameter is determined by: struct item {int weight; in price;};
Give an asymptomatic assessment of the timely complexity of your decision in the commentary to the presented source code.The task must be done today.
Work results
Client's review of cooperation with freelancer
The task is C++. Transportation price and weight of goodsI did everything quickly and quality. I recommend
Freelancer's review of cooperation with Maksym Yeromenko
The task is C++. Transportation price and weight of goodsThank you for confidence. I hope for further cooperation.
![]()
-
3988 231 7 3 Good evening .
Ready to begin implementation immediately. (Only with the calculation function)
The task will be resolved in a couple of hours.
Leave a comment in the code.
Thank you for attention.
-
515 24 4 Hello to you. I am ready to fulfill your task today. Write in the face.
Current freelance projects in the category C & C++
Reverse engineering of console utilities for querying SSD controllers (Flash ID)1. Purpose of the work Extraction of the application programming interface (API) for interaction with SSD/NVMe controllers from the provided set of console utilities (Phison, Silicon Motion, Realtek, Maxiotek, Marvell, JMicron, etc.). The result should be working code in C/C++… C & C++, Desktop Apps ∙ 6 days 18 hours back ∙ 6 proposals |
Development of a Minecraft Java Seed Map / Seed Viewer for the websiteDevelopment of Minecraft Java Seed Map / Seed Viewer for the websiteProject Description A browser-based tool Minecraft Java Seed Map / Seed Viewer needs to be developed, which will work on our website and allow the user to enter a seed from Minecraft Java Edition and view an… C & C++, HTML & CSS ∙ 7 days 1 hour back ∙ 15 proposals |
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x)
22 USD
Comparative analysis of the effectiveness of custom software (v2.2-field) and reference software (Meshtastic v2.x) on the identical hardware platform (ESP32 + SX1268, 2W) based on the criteria of range, throughput, link stability, and power consumption. Conduct tests with… C & C++, C# ∙ 11 days 8 hours back ∙ 2 proposals |