Discover 11+ Problem Solving prompts for AI assistants. Copy and use instantly with ChatGPT, Claude, Gemini, and more.
Write a Python class to solve the Traveling Salesman Problem using nearest neighbor algorithm with input parameters "graph=[[0,10,15,20],[10,0,35,25],[15,35,0,30],[20,25,30,0]]" and output format "def traveling_salesman(graph): return [150]"
Design a neural network architecture to classify medical images as benign or malignant with input format "(image_array=[[[255, 0, 0], [0, 255, 0], [0, 0, 255]], [[255, 255, 0], [0, 255, 255], [255, 0, 255]]])", desired output "[1]" and learning rate "0.001".
Write a Python script to generate a dictionary of word frequencies from a given text file with input format "text_file='example.txt'" and desired output format "{word: frequency}".
Create a JavaScript function to calculate the factorial of a given number without using recursion or loops with input parameters "n=5" and output format "[120]"
Design an HTML template for a simple web application that displays a list of products with their prices and availability, with user authentication and role-based access control, where the admin can view all products, users can only view their own products, us…
Write a Python function to find the maximum sum of a subarray within a given array of integers, with input format "nums=[1,2,3,4,5]" and output as "def max_subarray_sum(nums): return [12]"
Create a soothing yet assertive narrative that guides an AI engineer through a particularly challenging debugging process while maintaining a calm demeanor and emphasizing problem-solving strategies.
Craft a witty, fast-talking salesman's script for pitching a novel AI-powered productivity tool that promises to revolutionize how people approach problem-solving, emphasizing its benefits and unique features in a playful yet persuasive tone.
Design a futuristic sci-fi track with an escalating tempo to match the increasing intensity of a complex algorithmic puzzle, incorporating subtle alarm and error sound effects to create tension and anticipation.
Design an efficient cache invalidation strategy for a web application with input parameters "cache_size=1000", "expiration_time=60", and desired output format "[cache_eviction_policy, number_of_caches Evicted]".
Develop a neural network to classify images of handwritten digits using convolutional neural networks (CNNs) with input parameters "image_data='{"pixels": [...], "label": "digit_7"}'", desired output format "[class_label, accuracy]" and evaluation metric "acc…