huihui-ai's picture
Upload coding_problems.py
7150ad7 verified
coding_problems = {
"Python": "Write a function to reverse a string. For example, input 'hello' should return 'olleh'.",
"Java": "Implement a simple calculator class that supports addition, subtraction, multiplication, and division.",
"C++": "Implement an efficient sorting algorithm (e.g., quicksort or mergesort) to sort an array of integers.",
"JavaScript": "Create a simple web page interaction: a button that, when clicked, displays the current time.",
"C#": "Implement a simple Windows Forms application with a text box and a button that displays the text box content when clicked.",
"Ruby": "Implement a simple web server using Ruby on Rails that returns 'Hello, World!'",
"PHP": "Create a dynamic web page that displays the current date and time.",
"Swift": "Implement a simple iOS app interface with a label and a button that updates the label to 'Clicked!' when pressed.",
"Go": "Implement a concurrent program using goroutines to calculate the square and cube of two numbers simultaneously.",
"R": "Read data from a CSV file, calculate the average, and plot a bar chart.",
"SQL": "Write a query to retrieve the total number of orders for each user from 'users' and 'orders' tables.",
"Kotlin": "Implement a simple Android app feature with an input field and a button that displays the input content when clicked.",
"Scala": "Implement a functional programming example: a function that takes a list of integers and returns their sum.",
"Perl": "Implement a text processing script to extract all email addresses from a text file.",
"Haskell": "Implement a pure functional program to calculate the nth Fibonacci number.",
"Lua": "Implement a game script to control a character's simple movements (e.g., up, down, left, right).",
"MATLAB": "Implement matrix multiplication and visualize the result.",
"Objective-C": "Implement a simple iOS app feature: a button that shows an alert with 'Welcome!' when clicked.",
"Rust": "Implement a safe concurrent program to calculate the sum of all elements in an array using multiple threads.",
"TypeScript": "Implement a type-safe function that takes an array of numbers and returns the maximum value.",
"Bash": "Write a shell script to backup a specified directory to a compressed file.",
"PowerShell": "Implement a system management script to list all running processes.",
"Dart": "Implement a simple Flutter app interface with a counter button.",
"Groovy": "Implement a simple script to read and print the content of a JSON file.",
"F#": "Implement a functional programming example: a function to calculate the product of all elements in an integer list.",
"Erlang": "Implement a simple distributed chat server that supports multiple client connections.",
"COBOL": "Implement a business calculation program to compute an employee's total salary (base salary + bonus).",
"Fortran": "Implement a scientific computing program to calculate a definite integral (e.g., using the rectangle method).",
"Ada": "Implement an embedded system program to simulate controlling an LED light (on/off).",
"Prolog": "Implement a logic reasoning program to solve a simple puzzle, such as 'Who is the murderer?'",
"Lisp": "Implement a symbolic computation program to evaluate a simple mathematical expression, e.g., '(add 2 3)'.",
"Scheme": "Implement a recursive function to calculate the factorial of n.",
"Smalltalk": "Implement an object-oriented program to simulate bank account deposits and withdrawals.",
"VHDL": "Design a simple digital circuit, such as an adder.",
"Verilog": "Implement a hardware module for a simple sequential logic circuit, like a counter.",
"Assembly": "Write a low-level program to compute the sum of two numbers.",
"Clojure": "Implement a concurrent program using concurrency primitives to compute the sum of squares of an array.",
"Elixir": "Implement a simple distributed counter.",
"Julia": "Implement a high-performance computing program for matrix multiplication and measure execution time.",
"Crystal": "Implement a web application that returns a JSON response.",
"Nim": "Implement a command-line tool that accepts arguments and prints the content of a file.",
"D": "Implement a system-level program to list all files in a directory.",
"Pascal": "Implement a teaching program demonstrating if-else and loop structures.",
"Forth": "Implement a stack-based addition calculator.",
"APL": "Implement an array processing program to sort an array and calculate its average.",
"J": "Implement a data analysis program to compute the standard deviation of a dataset.",
"K": "Implement a high-performance data processing program to compute the sum of a large array.",
"Q": "Implement a database query to retrieve data from a time-series database for a specific period.",
"Tcl": "Implement a script to automate file renaming.",
"Awk": "Implement a text processing script to extract the second field from each line of a log file.",
"Sed": "Implement a text replacement script to replace 'cat' with 'dog' in a text file.",
"Grep": "Implement a pattern matching script to find lines containing 'error' in a file.",
"Makefile": "Write a build script to compile a C program and generate an executable file.",
"CMake": "Implement a cross-platform build system configuration using CMake.",
"Dockerfile": "Write a container configuration file to build a Docker image with a Python environment.",
"YAML": "Implement a configuration file for a web application, specifying port and database connection.",
"JSON": "Implement a data exchange format to represent a user's personal information.",
"XML": "Implement a markup language document to describe a book's title and author.",
"HTML": "Implement a simple web page with a title and a paragraph.",
"CSS": "Implement a style sheet to add background color and font styles to an HTML page.",
"Sass": "Implement a CSS preprocessor script to generate nested style sheets.",
"Less": "Implement a CSS preprocessor script using variables to define colors and generate CSS.",
"PostScript": "Implement a print script to generate a circle graphic.",
"TeX": "Implement a typesetting document that includes mathematical formulas."
}