instruction_seed
stringlengths
0
26.4k
source
stringclasses
4 values
Develop a Python class for handling the API calls.
codefeedback
Develop an algorithm to process a given matrix.
codefeedback
Develop a program to identify the longest common prefix between two strings. String1 = "Hellocat" String2 = "Hellokong"
codefeedback
Develop a SQL query to find the latest date from a table.
codefeedback
Create a program in JavaScript to remove the duplicate entries in an array. arr = [1, 2, 3, 1, 4, 5, 6, 4, 1]
codefeedback
Using C++, write a program to find the Fibonacci number at a given position.
codefeedback
Choose a suitable data structure to store a collection of products.
codefeedback
Design a web API that enables users to register and log in.
codefeedback
Use the following model to create a prediction for the values in the list classifying it as either 0 or 1. [1.0, 2.0, 0.5]
codefeedback
Using the Python library `pygame`, create a simple game where the player is able to move a character on screen using the arrow keys.
codefeedback
Write a function in HTML to display a list of students sorted by their final grade. var students = [{ name: "Tom", grade: 90 }, { name: "Karl", grade: 75 }, { name: "Kofi", grade: 65 }];
codefeedback
Write a python program to find all anagrams in a given string str = “abc”
codefeedback
Implement a function to delete a node in a linked list
codefeedback
Write an if..elif..else statement to check if a number is positive, negative or zero.
codefeedback
Develop a program to remove duplicate items in the list.
codefeedback
Find the maximum number in the given array without using an inbuilt function Array = [3, 1, 7, 5, 8]
codefeedback
Explain what a try-except statement is and how it should be used.
codefeedback
Given an array of integers and an integer, return true if any two integers in the array add up to the given integer. arr = [1, 2, 3, 4] sum = 7
codefeedback
Find a way to generate all the unique permutations for a given string. s = 'ABC'
codefeedback
Write a JQuery code snippet to select all the input elements with class "input-element".
codefeedback
How would you create a new array with only the positive numbers from the following array in Python? [-2, -5, 3, 6, 0, -3]
codefeedback
Sort an array A of integers in ascending order without using any pre-defined sorting functions. [23, 1, 32, 15, 40]
codefeedback
Calculate the number of substrings possible with the given string. "welcome"
codefeedback
Implement an algorithm to remove duplicates from a linked list.
codefeedback
Write a code to find the first non-duplicate character in a given string. var s = "apple";
codefeedback
Create a program that prints the first 10 positive integers in reverse order.
codefeedback
What are the steps to create a constructor in Java?
codefeedback
What is the syntax for an SQL Inner Join statement?
codefeedback
Edit this SQL query to include an order by clause: SELECT * FROM Employees
codefeedback
Create a function which takes two strings and compares them to see if they are anagrams of each other.
codefeedback
Create a function which takes in an array and returns a list of all the elements which appear only once in the array.
codefeedback
Create an algorithm to detect if a linked list contains a cycle.
codefeedback
Write a C# code that implements a simple event listener.
codefeedback
Calculate the sum of all odd numbers between two given numbers. Lower limit: 3 Upper limit: 7
codefeedback
Change the first character of a given string to uppercase. String: "python"
codefeedback
Using a REST API, write a code to retrieve the current temperature in New York City.
codefeedback
Write a code to generate a random 8 character string containing only lowercase letters.
codefeedback
Write a code to create an object using a class constructor having attributes given in a dictionary. attributes = {'name': 'John', 'age': 20, 'gender': 'M', 'hobbies': ['books', 'sports']}
codefeedback
Write a code to print a binary tree in pre order traversal.
codefeedback
Create a function to convert the given string to hexadecimal code.
codefeedback
Write a code to normalize a given array of numbers between 0 and 1 where min = 0, max = 1 and every other number is proportional to it. arr = [10, 20, 30, 25, 0]
codefeedback
Write pseudocode to implement a sorting algorithm using recursion.
codefeedback
Code a SQL query to display the full names of all employees whose email address ends with "@example.com".
codefeedback
Design a Python class to represent a student and their GPA.
codefeedback
Design a Python class to represent a Triangle and its properties, such as area, perimeter, and angles.
codefeedback
Create a Python script to print the first N numbers of the Fibonacci sequence.
codefeedback
Create a python class to manage a sports team.
codefeedback
Write a function to find all the prime numbers from 2 to n (where n is a given input).
codefeedback
Explain what is Closure in Python Programming?
codefeedback
What is the purpose of neural networks?
codefeedback
Write a function in C++ that takes two integers as input, and outputs the greatest common divisor (GCD) of the two integers.
codefeedback
Implement the Quick Sort algorithm with a list of numbers. [2, 5, 4, 1, 6, 2, 9, 3]
codefeedback
Given a list of numbers and the length n, write a Python program to add the elements of all even indexed values to the corresponding odd indexed values. my_list = [5, 10, 15, 20, 25] n = 5
codefeedback
Implement a sequence to sequence model for translation.
codefeedback
Write a function that takes in a 2D matrix and outputs the transpose of the matrix.
codefeedback
Generate a hash for a given dictionary. my_dict = {'name': 'John', 'age': 27, 'profession': 'programmer'}
codefeedback
Create a function that returns the nth Fibonacci number.
codefeedback
Create an algorithm to convert a temperature from Celsius to Fahrenheit. 0
codefeedback
Create a SQL query to select the top five customers based on purchase amount
codefeedback
Write an algorithm in Python to determine if an array has duplicate elements or not.
codefeedback
Generate a Python function that takes 'string' as an argument and return a new string with the last two characters of 'string' repeated.
codefeedback
Modify the following code to include a try/except statement. def read_file(filename): with open(filename) as f: return f.read()
codefeedback
Implement a function for generating a list of Fibonacci numbers up to n.
codefeedback
Design a distributed system for an online pharmacy.
codefeedback
Write a code to sort an array of integers using the quicksort algorithm. array = [2, 4, 5, 1, 9, 0]
codefeedback
Write C++ code to implement a stack data structure.
codefeedback
Compare the insertion sort and the merge sort algorithms.
codefeedback
Design a data structure to find the first and last occurrence of a number in an array. array = [1, 5, 7, 8, 8, 10]
codefeedback
Create a Java program to print a square diamond pattern with '*' characters.
codefeedback
Write a Python program to find all the prime numbers in the range between 1 to 1000.
codefeedback
Create a function to check if a string contains only unique characters. string = "Programming"
codefeedback
Explain how a Depth-First-Search (DFS) algorithm works.
codefeedback
Devise a logic using PHP to check if a number is prime.
codefeedback
Write a function in Java to find the length of the longest common subsequence of two strings.
codefeedback
Explain what a Monadic function is.
codefeedback
Generate a regular expression to match a UK phone number
codefeedback
Write an SQL query to count the number of lines in an orders table
codefeedback
Write a SQL query to get the data of the third row in the table named "table_name".
codefeedback
Create a recursive algorithm to sum the numbers between 1 and n (inclusive). n = 5
codefeedback
Create an HTML form to display a list of countries and its corresponding capital. <list of countries and corresponding capitals>
codefeedback
Create a code to generate a unique 7-character string of random numbers and letters.
codefeedback
Write a code that takes in a string and returns the total count of each letter of the alphabet it contains. example123
codefeedback
Create a function to find the sum of all the multiples of 3 or 5 below 1000.
codefeedback
Search the string for duplicates and remove them. Input: "googleeee"
codefeedback
Write a Java method to insert a given string at the beginning of every word in a given sentence. String sentence = "The quick brown fox jumps over the lazy dog";
codefeedback
Write an algorithm in Python to search for the first non-repeating element in a given array. array = [4,6,4,1,8,6,44,21];
codefeedback
Write a JavaScript program to create a random string of 10 characters.
codefeedback
Write a code in SQL to create a database table that stores the names and scores of students in a class.
codefeedback
Describe how dynamic programming works in programming.
codefeedback
Write a code to generate a random password consisting of 8 characters with atleast one lowercase letter, one uppercase letter and one number.
codefeedback
What is an example of a multi-dimensional array?
codefeedback
Specify an appropriate condition that limits the set of documents produced based on the given context. In a newsreader application, train a classifier to pull out only the articles about current world news.
codefeedback
Design a URL shortening system where a given URL is converted to an 8 digit alphanumeric string. https://www.example.com/
codefeedback
Usage of Global Variable
codefeedback
Create a program that will filter out all numbers divisible by 3 from the given list of integers. [2, 3, 4, 6, 8, 9, 10, 12]
codefeedback
Retrieve the last character of a given string. Programming
codefeedback
Design an algorithm to find the longest increasing subsequence in an array. input = [9, 8, 4, 12, 2, 10, 6, 14, 1, 16, 3, 11, 5, 15, 7]
codefeedback
Build an algorithm to check if a given number is a prime number or not.
codefeedback
Create a function to convert a given number of days to years, months, and days.
codefeedback
What is a stack overflow error and how can it be avoided?
codefeedback