Написать два задания на Python (стек, очередь, дерево поиска)
600 UAHДоброе время суток, Мира!
Мне нужно написать два маленьких задания на 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
Актуальні фриланс-проєкти в категорії Python
Парсинг даних через мобільне APIШукаю людину з досвідом парсингу даних через мобільне API, для парсингу e-commerce, rozetka та аналоги Завдання: 1. Перехоплення трафіку мобільного додатку (Android) налаштування проксі, аналіз запитів 2. Визначення потрібних API endpoints, куди йдуть запити, які headers… Python, Парсинг даних ∙ 6 годин 57 хвилин тому ∙ 18 ставок |
Створення бота багато фунціонального бота в телеграм
1000 UAH
(Всі матеріали предоставлю в приватні повідомлення) Ось детальний опис проєкту: Псіля натискання кнопки /start Бот присилає текст з правилми та умови користування (під текстом, кнопка ‘ознакомлен’) Після натискання на кнопку, наступне повідомлення ʼпроверка на подпискуʼ Три… Python, Розробка ботів ∙ 3 дні 2 години тому ∙ 95 ставок |
Знайти товарний фід (Google Merchant XML) для сайту на OpenCart
700 UAH
Необхідно знайти пряме посилання на діючий товарний фід (XML) конкурента для Google Merchant Center Платформа (CMS): OpenCart / ocStore Знайти оригінальний фідВимоги до результату: Робоче посилання на XML-файл Python, Парсинг даних ∙ 5 днів 16 годин тому ∙ 28 ставок |
Розробка Тік-Ток ферми (контент-завод)Необхідно розробити систему для централізованого управління кількома TikTok-акаунтами з автоматичною публікацією контенту, використанням індивідуальних проксі та імітацією природної активності акаунтів. Функціональні вимоги1. Управління акаунтами Додавання та видалення… Python, Розробка ботів ∙ 6 днів 3 години тому ∙ 21 ставка |
Покращити роботу Claude Code та роботу з написанням програмного забезпеченняЗараз розробляю СРМ та Аналітику, софт. Роблю через Клод Код, але розумію, що результати не найкращі в плані змін. Є 2 задачі - Потрібно допомогти зробити пресет по навичкам, мд і так далі, щоб покращити якість. Взяти перевірені, з якими працювали, а не з інтернету перші. - В… AI та машинне навчання, Python ∙ 6 днів 10 годин тому ∙ 28 ставок |