Developer Prompts
Developer prompts using one-shot, few-shot, and other prompting techniques
- One-shot prompt: Generate a function that calculates the factorial of a given number.
- Few-shot prompt: Write a program that sorts an array of integers in ascending order.
- Self-consistency prompt: What are the key differences between object-oriented programming and functional programming? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the average of a list of numbers.
- One-shot prompt: Create a function that checks if a given string is a palindrome.
- Few-shot prompt: Write a program that finds the largest number in an array of integers.
- Self-consistency prompt: What are the key features of a good software design? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of a list of numbers.
- One-shot prompt: Create a function that checks if a given number is prime.
- Few-shot prompt: Write a program that finds the second largest number in an array of integers.
- Self-consistency prompt: What are the key principles of agile software development? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the product of a list of numbers.
- One-shot prompt: Create a function that checks if a given string is a valid email address.
- Few-shot prompt: Write a program that removes duplicates from an array of integers.
- Self-consistency prompt: What are the key differences between a stack and a queue? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the median of a list of numbers.
- One-shot prompt: Create a function that checks if a given number is even or odd.
- Few-shot prompt: Write a program that finds the smallest number in an array of integers.
- Self-consistency prompt: What are the key principles of test-driven development? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the standard deviation of a list of numbers.
- One-shot prompt: Create a function that checks if a given string is a valid URL.
- Few-shot prompt: Write a program that reverses an array of integers.
- Self-consistency prompt: What are the key differences between a linked list and an array? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the mode of a list of numbers.
- One-shot prompt: Create a function that checks if a given number is a perfect square.
- Few-shot prompt: Write a program that finds the kth smallest number in an array of integers.
- Self-consistency prompt: What are the key principles of continuous integration and continuous deployment? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the greatest common divisor of two numbers.
- One-shot prompt: Create a function that checks if a given string is a valid phone number.
- Few-shot prompt: Write a program that rotates an array of integers by a given number of positions.
- Self-consistency prompt: What are the key differences between a binary tree and a binary search tree? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the least common multiple of two numbers.
- One-shot prompt: Create a function that checks if a given number is a power of two.
- Few-shot prompt: Write a program that finds the kth largest number in an array of integers.
- Self-consistency prompt: What are the key principles of software architecture? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the Fibonacci sequence up to a given number.
- One-shot prompt: Create a function that checks if a given string is a valid IP address.
- Few-shot prompt: Write a program that merges two sorted arrays of integers into a single sorted array.
- Self-consistency prompt: What are the key differences between a mutex and a semaphore? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the factorial of a given number using recursion.
- One-shot prompt: Create a function that checks if a given number is a perfect number.
- Few-shot prompt: Write a program that finds the common elements in two arrays of integers.
- Self-consistency prompt: What are the key principles of software testing? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of the digits of a given number.
- One-shot prompt: Create a function that checks if a given string is a valid credit card number.
- Few-shot prompt: Write a program that finds the first non-repeating element in an array of integers.
- Self-consistency prompt: What are the key differences between a compiler and an interpreter? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the greatest common divisor of multiple numbers.
- One-shot prompt: Create a function that checks if a given number is a perfect cube.
- Few-shot prompt: Write a program that finds the maximum subarray sum in an array of integers.
- Self-consistency prompt: What are the key principles of software maintenance? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of the digits of a given number using recursion.
- One-shot prompt: Create a function that checks if a given string is a valid password.
- Few-shot prompt: Write a program that finds the first repeating element in an array of integers.
- Self-consistency prompt: What are the key differences between a database and a file system? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the nth term of the Fibonacci sequence using recursion.
- One-shot prompt: Create a function that checks if a given number is a palindrome.
- Few-shot prompt: Write a program that finds the longest increasing subarray in an array of integers.
- Self-consistency prompt: What are the key principles of software documentation? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of the digits of a given number using iteration.
- One-shot prompt: Create a function that checks if a given string is a valid username.
- Few-shot prompt: Write a program that finds the maximum product subarray in an array of integers.
- Self-consistency prompt: What are the key differences between a static library and a dynamic library? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the nth term of the Fibonacci sequence using iteration.
- One-shot prompt: Create a function that checks if a given number is a perfect number using recursion.
- Few-shot prompt: Write a program that finds the longest common prefix in an array of strings.
- Self-consistency prompt: What are the key principles of software debugging? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of the digits of a given number using a while loop.
- One-shot prompt: Create a function that checks if a given string is a valid URL using regular expressions.
- Few-shot prompt: Write a program that finds the maximum sum subarray with at least k elements in an array of integers.
- Self-consistency prompt: What are the key differences between a process and a thread? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the nth term of the Fibonacci sequence using memorization.
- One-shot prompt: Create a function that checks if a given number is a perfect square using recursion.
- Few-shot prompt: Write a program that finds the longest common suffix in an array of strings.
- Self-consistency prompt: What are the key principles of software optimization? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of the digits of a given number using a for loop.
- One-shot prompt: Create a function that checks if a given string is a valid email address using regular expressions.
- Few-shot prompt: Write a program that finds the maximum sum subarray with at most k elements in an array of integers.
- Self-consistency prompt: What are the key differences between a synchronous and an asynchronous operation? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the nth term of the Fibonacci sequence using dynamic programming.
- One-shot prompt: Create a function that checks if a given number is a power of two using recursion.
- Few-shot prompt: Write a program that finds the longest common substring in an array of strings.
- Self-consistency prompt: What are the key principles of software security? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of the digits of a given number using a do-while loop.
- One-shot prompt: Create a function that checks if a given string is a valid IP address using regular expressions.
- Few-shot prompt: Write a program that finds the maximum sum subarray with exactly k elements in an array of integers.
- Self-consistency prompt: What are the key differences between a hash table and a binary search tree? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the nth term of the Fibonacci sequence using matrix exponentiation.
- One-shot prompt: Create a function that checks if a given number is a perfect cube using I apologize, but it seems that my previous answer was cut off. Here are the remaining 11 prompts for Software Developers using one-shot, few-shot, and other prompting techniques:
- One-shot prompt: Create a function that checks if a given number is a perfect cube using recursion.
- Few-shot prompt: Write a program that finds the longest palindromic substring in a given string.
- Self-consistency prompt: What are the key principles of software version control? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the sum of the digits of a given number using a recursive function.
- One-shot prompt: Create a function that checks if a given string is a valid credit card number using regular expressions.
- Few-shot prompt: Write a program that finds the longest increasing subsequence in an array of integers.
- Self-consistency prompt: What are the key differences between a monolithic architecture and a microservices architecture? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the nth term of the Fibonacci sequence using a recursive function with memorization.
- One-shot prompt: Create a function that checks if a given number is a power of three using recursion.
- Few-shot prompt: Write a program that finds the longest common subsequence in two given strings.
- Self-consistency prompt: What are the key principles of software refactoring? Provide at least three examples.
- In-context learning prompt: Write a program that calculates the nth term of the Fibonacci sequence using a closed-form expression.