Sorting – Heapsort (Python)
On the entrance you have a number n indicating how many numbers a1,.. an will follow (each in a separate line).
From these numbers build a heap from below upward (see. HTTPS://www.youtube.com/watch?v=MiyLo8adrWw) and perform the heap-sort so that it works on the site (i.e. to sort the sequence without additional memory) and sort by increase (i.e. so that in the field that represents the heap, the performance of the heapsort leads to a massive sort by increase).
The example:
The Input:
Three
Three
1
2
Output: (Do not write the data in the scripts, it's the comments)
3 1 2 (constructed heap)
2 1 3 (první extract_min)
1 2 3 (druhý extract_min)
Tip: The author's decision contains 1149 B and is recorded in 36 rows.
Client's review of cooperation with Viktor Soltan
Sorting – Heapsort (Python)The work was done quickly and quality. Everyone is satisfied!
Freelancer's review of cooperation with Mark Red
Sorting – Heapsort (Python)For the second time we work with Mark, clear conditions, contactability, quick checking of work, I hope we will work further.
Current freelance projects in the category Desktop Apps
Small edit on the website
16 USD
Need to update the offer agreement in the footer to a new one, the company has changed its regulations Task will take 20 minutes Web Programming, Desktop Apps ∙ 24 minutes back ∙ 41 proposals |
Account reconciliation tool with the bank, cards, and accountantTechnical Assignment: Tool for Reconciling Accounts with Bank, Cards, and AccountantGeneral Goal A local tool (script/small application in Python) is needed, which is manually run once every 1-2 months on my computer and performs reconciliation between: Invoices I issued to… Python, Desktop Apps ∙ 2 days 7 hours back ∙ 39 proposals |
Add pauses of 10-30 seconds between sending emails.Hello! I am looking for an experienced 1C / BAS (BAF) programmer to promptly resolve a technical issue with email distribution.Problem essence: We use the accounting program BAF (Business Automation Framework), version 2.0. Once a month, there is a need to send about 300 emails… Web Programming, Desktop Apps ∙ 7 days 23 hours back ∙ 10 proposals |
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 ∙ 8 days 10 hours back ∙ 6 proposals |