Написать два задания на Python (стек, очередь, дерево поиска)
50 PLNДоброе время суток, Мира!
Мне нужно написать два маленьких задания на Python:
1. Имплементация стека и очереди (не используя лист);
2. Имплементация дерева, двоичного и АВЛ дерева.
(система просит ввести бюджет чтобы опубликовать персональный проект - предложите сколько это будет стоить)
Взгляните пожалуйста!
Lab 1 - Queues and Stacks
Create a file called Lab1-YourStudentNumber.py. Incorrectly named files will receive a mark of zero.
First, create a method called getName() that returns your name. If this does not work, you will receive a mark of zero.
A Node class is given. You are to create Queue and Stack ADTs using a linked implementation. The implementations are linked Nodes.
A class called MyQueue is given. You are to implement the methods enqueue(x), dequeue(), and length(). An item enqueued should be added to the end of the queue, and an item dequeued should be removed and returned from the beginning. The function length() should return the number of items in the queue. This function should be O(1).
A class called MyStack is given. You are to implement the methods push(x), pop(), and length(). An item pushed should be added to the top of the stack, and an item popped should be removed and returned from the top. The function length() should return the number of items in the stack. This function should be O(1).
You cannot use Python's list in your implementation. This includes the methods appends, pop, etc. You must use the Node class given.
Use Lab1Tester.py to test your code
Example command line:
Lab 2 - Trees, BST and AVL
Create a file called Lab2-YourStudentNumber.py. Incorrectly named files will receive a mark of zero.
First, create a method called getName() that returns your name. If this does not work, you will receive a mark of zero.
You are given the class MyTree in the template file. The follow methods getLeft(), getRight(), getData(), are given. Do not change them. The method __init__(x) is also given. You may add to this. You are to implement the insert(x) and getHeight() methods. Each child should itself be a MyTree object.
The insert(x) method should be implemented with a recursive algorithm. The final return is the root node. The getHeight() method should return the height of the node. The height of a leaf node should be zero.
A class called MyBST that extends MyTree is given. Override the method insert(x) to meet the definitions of a Binary Search Tree. Create a method called __contains__(x) that returns true if x is in the tree.
A class called MyAVL that extends MyBST is given. Override the method insert(x) to meet the definitions of an AVL Tree. Create a method called getBalanceFactor() that returns the balance factor of the node. It is suggested that you implement the methods leftRotate() and rightRotate().
Use Lab2Tester.py to test your code
Aktualne zlecenia dla freelancerów w kategorii Python
Stworzenie wielofunkcyjnego bota w Telegramie
83 PLN
(Wszystkie materiały przekażę w prywatnych wiadomościach) Oto szczegółowy opis projektu: Po naciśnięciu przycisku /start Bots wysyła tekst z zasadami i warunkami korzystania (pod tekstem przycisk 'zapoznałem się') Po naciśnięciu przycisku, następna wiadomość 'sprawdzenie… Python, Tworzenie chatbota ∙ 1 dzień 2 godziny temu ∙ 86 ofert |
Znaleźć feed produktowy (Google Merchant XML) dla strony na OpenCart
58 PLN
Konieczne jest znalezienie bezpośredniego linku do działającego pliku z danymi produktowymi (XML) konkurenta dla Google Merchant Center Platforma (CMS): OpenCart / ocStore Znajdź oryginalny plik z danymiWymagania dotyczące wyniku: Roboczy link do pliku XML Python, Parsowanie danych ∙ 3 dni 15 godzin temu ∙ 24 oferty |
Rozwój farmy Tik-Tok (fabryka treści)Konieczne jest opracowanie systemu do centralnego zarządzania wieloma kontami TikTok z automatycznym publikowaniem treści, wykorzystaniem indywidualnych proxy oraz symulacją naturalnej aktywności kont. Wymagania funkcjonalne1. Zarządzanie kontami Dodawanie i usuwanie kont… Python, Tworzenie chatbota ∙ 4 dni 3 godziny temu ∙ 19 ofert |
Poprawić działanie Claude Code i prace związane z pisaniem oprogramowaniaObecnie rozwijam CRM i analitykę, oprogramowanie. Robię to przez Claude Code, ale rozumiem, że wyniki nie są najlepsze pod względem zmian. Mam 2 zadania - Potrzebuję pomocy w stworzeniu presetów dotyczących umiejętności, MD itd., aby poprawić jakość. Wziąć sprawdzone, z którymi… AI i uczenie maszynowe, Python ∙ 4 dni 9 godzin temu ∙ 25 ofert |
System OCRPotrzebny jest system rozpoznawania tekstu na kopertach pocztowych (indeks - tylko liczby). Tekst czasami może być ręcznie napisany. Rozpoznawanie znaczków (liczenie ilości i nominałów) Python ∙ 4 dni 13 godzin temu ∙ 28 ofert |