Develop a function that calculates the factorial of a number using a recursive algorithm with optimized base case handling and error checking for non-integer inputs.
Write a script that generates a binary search tree from a list of integers, including functions to insert, delete, and search for nodes, and an in-order traversal algorithm.
Create a program that implements a simple command-line interface for a basic calculator, supporting operations like addition, subtraction, multiplication, and division, with input validation and error handling for invalid commands.
Design a class representing a linked list, including methods for adding, removing, and finding elements, and a function to reverse the list iteratively and recursively.
Develop a function that sorts an array of integers using the quicksort algorithm, with optimized pivot selection and handling of edge cases like empty arrays and arrays with duplicate elements.
Write a program that simulates a traffic light system using state machines, including functions for changing states, handling timers, and simulating traffic flow based on the light state.
Create a script that generates random passwords with customizable length and character sets, including options for alphanumeric, special characters, and mixed-case passwords, with functionality to check password strength.
Develop a class representing a stack data structure, including methods for pushing, popping, and peeking at elements, and a function to check if the stack is empty or full, with error handling for stack underflow and overflow.
Write a program that implements a simple web server using sockets, supporting basic HTTP methods like GET and POST, and handling client requests with appropriate responses.
Design a function that calculates the greatest common divisor (GCD) of two integers using the Euclidean algorithm, with input validation and optimized handling of edge cases like zero and negative numbers.
Create a script that parses a CSV file and loads the data into a database, including functions for validating the file format, handling errors during parsing, and generating SQL queries for inserting data.
Develop a class representing a queue data structure, including methods for enqueuing, dequeuing, and peeking at elements, and a function to check if the queue is empty or full, with error handling for queue underflow and overflow.
Write a program that simulates a basic banking system, supporting operations like account creation, deposit, withdrawal, and balance inquiry, with input validation and error handling for invalid operations.
Design a function that calculates the nth Fibonacci number using dynamic programming, with optimized memory usage and handling of edge cases like negative inputs and large values.
Create a script that generates random datasets with customizable parameters like size, data types, and distributions, including options for generating categorical, numerical, and mixed-type data, with functionality to save the generated data to a file.
Develop a class representing a graph data structure, including methods for adding and removing nodes and edges, and functions for depth-first search (DFS) and breadth-first search (BFS) traversal algorithms.
Write a program that implements a simple file encryption and decryption system using symmetric-key cryptography, supporting operations like key generation, encryption, and decryption, with input validation and error handling for invalid keys and files.
Design a function that calculates the Levenshtein distance between two strings using dynamic programming, with optimized memory usage and handling of edge cases like empty strings and strings with special characters.
Create a script that monitors system resources like CPU and memory usage, generating real-time reports and alerts based on customizable thresholds, with functionality to log data to a file and display it in a user-friendly format.
Develop a class representing a priority queue data structure, including methods for inserting and removing elements, and a function to check if the queue is empty or full, with error handling for queue underflow and overflow, and support for custom priority comparison functions.