instruction_seed stringlengths 0 26.4k | source stringclasses 4
values |
|---|---|
Write a JavaScript function that removes duplicates from an array.
array = [1, 2, 3, 1, 4, 5, 6, 2, 8] | codefeedback |
Create a Java program that reads in two strings and outputs their longest common substring.
myCodingSkillzz and AnotherCodingSkill | codefeedback |
3D print a model of a house. | codefeedback |
Develop a web page with React. | codefeedback |
Parse this string to extract the integer value.
value = 'The integer value is 12' | codefeedback |
Write a Java program to convert a given integer value to octal. | codefeedback |
Generate Fibonacci numbers up to 50 using a while loop. | codefeedback |
Create a three-dimensional array with all elements set to 0 of length 3×2×2. | codefeedback |
Create a SQL query to retrieve all employees whose age is equal to or greater than 25 and write the query in the output field. | codefeedback |
Generate a Python program to perform matrix multiplication. | codefeedback |
Create an SQL query to retrieve all records from a table where the values of two columns do not match. | codefeedback |
Write a function that parses a json string into a Python dict. | codefeedback |
Write a code to print a count-down timer. | codefeedback |
Write a code to create a FizzBuzz game, that prints the numbers from 1 to 50, replacing all the numbers divisible by 3 with the word "Fizz" and the numbers divisible by 5 with the word "Buzz". | codefeedback |
Design a neural network to classify the outcome of a coin toss. | codefeedback |
Rearrange the array so each element is divisible by 3
[5,12,17,30,11] | codefeedback |
Implement a computationally efficient algorithm to solve the following problem
Given an array of integers, check if the sum of any two integers in the array is divisible by 10 | codefeedback |
Find a Python solution for this leetcode problem.
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice. | codefeedback |
Write code to solve this DP(Dynamic Programming) problem from LeetCode.
You are given coins of different denominations and a total amount of money. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money cannot be made up by any combination of the coins, retu... | codefeedback |
Generate a sum of square numbers from 1 to 5. | codefeedback |
Edit the following code to allow for the user to input an unlimited list of numbers. | codefeedback |
Write a code in PHP to display the top 5 most viewed pages in a website. | codefeedback |
Using the SQL query given below, add a new column called 'total_Quantity' to the table output which is the sum of quantity of all the orders by customer_id
SELECT customer_id, item_id, quantity
FROM orders; | codefeedback |
Build a state machine to simulate a vending machine. | codefeedback |
How many are hypernyms of the given word?
cat | codefeedback |
Write an algorithm that returns the word with the most vowels in the sentence.
The quick brown fox jumps over the lazy dog. | codefeedback |
Create a tensorflow model that recognizes handwritten digits from the MNIST dataset. | codefeedback |
Given a list of integers, find the lengthiest common substring of the list.
[1, 2, 3, 4, 5, 3, 2, 6] | codefeedback |
Write code in Python to retrieve the top 10 Rated Movies in IMDB. | codefeedback |
What is the complexity of an iterative mergesort algorithm? | codefeedback |
Write an algorithm for finding the square root of a number. | codefeedback |
Construct an API call in Python that returns information about a given book. | codefeedback |
Generate a pseudorandom sequence of hexadecimal numbers with length 10. | codefeedback |
Write a Java method to convert a given integer to its equivalent English words | codefeedback |
Design an algorithm to detect the pattern of spikes in an EEG. | codefeedback |
Count the number of vowels in the given sentence and print the result.
Sentence: There is no shortcut to success | codefeedback |
Write a code to update a given column using the data from another table.
Table1: Student
Table2: Course
Column to be updated: Student.CourseId | codefeedback |
Write a code to train a random forest classifier for a given dataset.
Dataset features: 5 features, 100 instances, 1000 estimators | codefeedback |
Write a code to simulate Conway’s Game of Life. | codefeedback |
Suggest a strategy to reduce the memory requirement of a given application. | codefeedback |
Design a class that can create objects with a unique ID. | codefeedback |
Design a password validation system using Python code. | codefeedback |
Generate a web page which shows the top 10 trending movies of the year. | codefeedback |
Generate a random password which contains 8 characters including characters, digits, and symbols. | codefeedback |
Write an SQL query to select the first five items from a table called 'products' sorted by price in descending order. | codefeedback |
Generate a sentence from a given sentence input, using a GPT-3 model.
This is a sentence. | codefeedback |
Implement a function to check if two binary trees are same or not. | codefeedback |
Write a Angular typescript code to validate the input form. | codefeedback |
Design a class in Python that creates objects based on user input. | codefeedback |
Convert the following HTML string to a DOM tree using JavaScript.
<div><span>Hello World</span></div> | codefeedback |
Explain why the following C++ code would not compile.
string result = to_string(3.14); | codefeedback |
Suggest an approach to debug a function written in Javascript that is not returning the expected result. | codefeedback |
Transform this code fragment to use the appropriate data structure.
word = "apple"
for i in range(len(word)):
print(word[i]) | codefeedback |
Write a C program to print all numbers between 1 to 100 with the exception of those divisible by 3. | codefeedback |
Create an algorithm in Java to print all the prime numbers between a given range. | codefeedback |
Write a sql query to fetch records from a table with a condition that must provide results with an id greater than 10. | codefeedback |
Write a function to calculate the largest possible number from the given list of integers.
[1, 8, 4, 12, 7] | codefeedback |
Write a JavaScript code snippet to query a given database table.
Table Name: users | codefeedback |
Construct an algorithm to solve this coding problem
Given two sorted linked lists, print a list with all the integers of the two lists as a single sorted list. | codefeedback |
Generate the list of all prime numbers between 0 and 99. | codefeedback |
Modify this piece of code to print numbers up to 10
for i in range(5):
print(i) | codefeedback |
Write a function to determine if a given number is prime and returns true or false. | codefeedback |
Given a tree, traverse it in the pre-order manner. | codefeedback |
Generate a Python generator to produce a sequence of the first N numbers
5 | codefeedback |
Design an algorithm in C# which searches for a given element in a sorted array.
A = [2, 3, 4, 10, 40]
element = 10 | codefeedback |
You are given a string and a letter. Output a new string where the occurances of the given letter are replaced with its index in the given string.
"apple" and "l" | codefeedback |
Write a Java program to convert a recursively given array of characters to a string.
['a', 'b', 'c'] | codefeedback |
Deploy a static website on AWS | codefeedback |
Create a Wordpress theme from scratch. | codefeedback |
Compute the prime factors of the number 54. | codefeedback |
Create an SQL query to find all the records in the 'customers' table that have a name that starts with 'John'. | codefeedback |
Change the following Define statement so that it will display a message containing the word “DONE” when the code is executed.
#define display_message() | codefeedback |
Come up with a design for a simple GUI-based web application that allows users to order food online. | codefeedback |
Write a Question answer system for the given paragraph.
Paragraph: The current century is the 21st century and it started in 2001 | codefeedback |
Write a code to reverse each element of an array
array = ['apple','dog','cat','mouse','ball'] | codefeedback |
Generate a SQL query to count the number of books that are available in the table BOOK. | codefeedback |
Suppose there are N nodes in a binary tree. After deleting a node, how many leaf nodes will be left? | codefeedback |
Find the smallest positive number which is divisible by both 5 and 7. | codefeedback |
Come up with a list of 10 words that best describes a person | codefeedback |
Write a MySQL query to get the top 3 most frequent letters
Table ‘letters’ containing letters | codefeedback |
Create a regex pattern to match a valid US zipcode | codefeedback |
Come up with a query to add a new column to a table
Table ‘employee’ | codefeedback |
Write a function to check if a given number is an Armstrong number or not. An Armstrong number is a-number when the sum of the cubes of its own digits is equal to the number itself. | codefeedback |
Output the median of the given list of numbers.
[1, 4, 7, 9, 12] | codefeedback |
Create a smart contract in solidity for executing a will.
The will is to be activated when the testator is no longer alive. | codefeedback |
Create an api with Django that is able to search through an inputed text. | codefeedback |
Given a number n, generate a list of tuples of the form (x,n/x) where x divides n.
n = 30 | codefeedback |
Given a tree, write a program to find the maximum depth of the tree. | codefeedback |
What is the complexity of the function you wrote in Q6? | codefeedback |
Write a function that takes two input parameters, a list and a number, and returns true if the number occurs in the list more than twice. | codefeedback |
Suggest an efficient algorithm for sorting the following list.
[7, 1, 4, 8, 9, 2] | codefeedback |
Given the following input, suggest a python code for computing the Fibonacci number for n. | codefeedback |
Generate a code to make all the elements of a list positive. | codefeedback |
Write a python code to generate permutations of an input string.
"abc" | codefeedback |
List the methods used by the os module in python. | codefeedback |
Perform an in-place reversal of a linked list | codefeedback |
Describe what O(n^2) represents in terms of complexity. | codefeedback |
Suggest an algorithm to compute the sum of all prime numbers from 2 to n. | codefeedback |
Suggest the best data structure to store a small dictionary of words and their meanings. | codefeedback |
Suggest a method to validate whether an input string is a valid JSON document or not. | codefeedback |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.