question
stringlengths 7
711
| domain
stringclasses 19
values | company
stringclasses 33
values | year
float64 2.02k
2.03k
⌀ | coding
stringclasses 4
values | personal_exp
stringclasses 3
values |
---|---|---|---|---|---|
Write a function, find_bigrams, that takes a sentence or paragraph of strings and returns a list of its sequential bigrams.
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write a function, replace_words, to stem words in a sentence with root forming it, given a dictionary consisting of many roots and a sentence. For words with multiple roots, replace with the shortest one.
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write a k-means clustering model from scratch.
|
Machine Learning
|
JPMorgan Chase
| null |
coding
| null |
Write a nested for loop to go over a dataset and print each element. The dataset can be in the form of a list of lists, a 2D array, or a dictionary of lists. Your task is to loop through the dataset and print each element individually.
|
Data Science
|
Block
| null | null | null |
Write a one-liner that will count the number of capital letters in a file.
|
Python
| null | null |
Yes
|
No
|
Write a program for Levenshtein Distance calculation
|
Data Science
|
Goldman Sachs
| null |
coding
| null |
Write a program in Python to check if a number is prime.
|
Python
| null | null |
Yes
|
No
|
Write a program in Python to check if a sequence is a Palindrome.
|
Python
| null | null |
Yes
|
No
|
Write a program in Python to execute the Bubble sort algorithm.
|
Python
| null | null |
Yes
|
No
|
Write a program in Python to find the largest and second-largest element in a list using Python.
|
Python
| null | null |
Yes
|
No
|
Write a program in Python to produce a Star triangle?
|
Python
| null | null |
Yes
|
No
|
Write a program to check even odd numbers using shorthand if-else statements.
|
Python
| null | null |
Yes
|
No
|
Write a program to check whether the given number is prime or not?
|
Python
| null | null |
Yes
|
No
|
Write a program to count the number of capital letters in a file?
|
Python
| null | null |
Yes
|
No
|
Write a program to display the Fibonacci sequence in Python?
|
Python
| null | null |
Yes
|
No
|
Write a program to find the greatest of the two numbers
|
Python
| null | null |
Yes
|
No
|
Write a program to produce Fibonacci series in Python.
|
Python
| null | null |
Yes
|
No
|
Write a program to Reverse a list using Enumerate in Python
|
Python
| null | null |
Yes
|
No
|
Write a Python code to calculate the standard deviation of elements in a list.
|
Data Science
|
PayPal
| null |
coding
| null |
Write a Python function max_profit that takes a list of stock prices and returns the maximum profit from one buy and one sell?
|
Data Science
|
American Express
| null |
coding
| null |
Write a Python function to determine if a string is a palindrome
|
All
|
PayPal
| null |
coding
| null |
Write a Python function to find the threshold dividing high-spending and low-spending customers based on their spending amounts
|
All
|
PayPal
| null |
coding
| null |
Write a Python program that removes duplicates from a list
|
Python
| null | null |
Yes
|
No
|
Write a Python program that will reverse a string without using the slicing operation or reverse() function
|
Python
| null | null |
Yes
|
No
|
Write a Python program to check if the given input is an Armstrong number or not
|
Python
| null | null |
Yes
|
No
|
Write a Python program to check whether a given string is a palindrome or not, without using an iterative method
|
Python
| null | null |
Yes
|
No
|
Write a Python program to count the total number of lines in a text file.
|
Python
| null | null |
Yes
|
No
|
Write a Python program to generate a Star triangle.
|
Python
| null | null |
Yes
|
No
|
Write a Python program to print a list of primes in a given range
|
Python
| null | null |
Yes
|
No
|
Write a Python program to replace all characters in a list except a given character
|
Python
|
JPMorgan Chase
| null |
coding
| null |
Write a Python script to calculate the average loan amount and standard deviation for each customer segment within a loan portfolio dataset.
|
Data Analytics
|
Capital One
| null |
coding
| null |
Write a query that returns columns representing the total number of bookings in the last 90 days, last 365 days, and overall.
|
Data Engineer
|
Mastercard
| null |
coding
| null |
Write a query to calculate the retention rate of customers over a given time period.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to count paid transactions with an amount 100 and the product with the highest revenue from paid transactions?
|
Data Engineer
|
Wells Fargo
| null |
coding
| null |
Write a query to count the number of orders placed by each customer.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to delete duplicate rows from a table.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to display the number of users, transactions, and total order amount per month for the year 2020.
|
Data Engineer
|
Wells Fargo
| null |
coding
| null |
Write a query to display the second highest salary from the Employee table.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to find all customers who have made more than Two orders.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to find all employees who earn more than the average salary.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to find duplicate records in a table and count the number of duplicates for each unique record.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to find the 3rd Highest employee's salary within their respective departments. If the department doesn't have a 3rd highest salary, return the 2nd highest available salary.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to find users who placed fewer than 3 orders or spent less than $500.
|
Data Engineer
|
Wells Fargo
| null |
coding
| null |
Write a query to get the current salary for each employee.
|
Data Engineer
|
Visa
| null |
coding
| null |
Write a query to get the retention rate of each monthly cohort for each plan_id for the three months after sign-up.
|
Data Science
|
Stripe
| null |
coding
| null |
Write a query to get the top 3 highest employee salaries by department.
|
Data Analytics
|
Bank of America
| null |
coding
| null |
Write a query to get the total three-day rolling average for deposits by day?
|
Data Science
|
American Express
| null |
coding
| null |
Write a query to get the total three-day rolling average for deposits by day.
|
Data Analytics
|
Wells Fargo
| null |
coding
| null |
Write a query to identify customers who placed more than three transactions each in both 2019 and 2020?
|
Data Analytics
|
Stripe
| null |
coding
| null |
Write a query to identify neighborhoods without any users, using two tables: users with demographics and neighborhoods.
|
Data Analytics
|
Capital One
| null |
coding
| null |
Write a query to identify the manager with the biggest team size.
|
Data Engineer
|
Mastercard
| null |
coding
| null |
Write a query to identify the top 10 customers who have not placed an order in the last year.
|
SQL
|
Citigroup
| null |
coding
| null |
write a query to identify the top five frequently paired products from tables transactions and products with over a billion rows, including their names.
|
Data Analytics
|
IBM
| null | null | null |
Write a query to join three tables and filter the results to show only records that exist in exactly two of the tables.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to list all products that have never been sold.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to obtain the total monthly sales for each product, presenting each product in a separate column in the output table.
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write a query to predict if projects are over or within budget, labeling them "over budget" or "within budget," respectively.
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write a query to retrieve all user IDs in ascending order whose transactions have exactly a 10-second gap from one another.
|
Data Science
|
Stripe
| null |
coding
| null |
write a query to retrieve data for customers that spent over $100 in the past seven days.
|
Data Analytics
|
AWS
| null | null | null |
write a query to retrieve data for customers who registered in the past ten days and spent over $100.
|
Data Analytics
|
AWS
| null | null | null |
Write a query to retrieve neighborhoods with zero users from the given users and neighborhoods tables.
|
Data Engineer
|
Capital One
| null |
coding
| null |
write a query to retrieve the average star rating for each product, grouped by month. the output should display the month as a numerical value, product id, and average star rating rounded to two decimal places. sort the output first by month and then by product id.
|
Data Science
|
AWS
| null | null | null |
Write a query to retrieve the list of employees who joined in the last 3 months.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to retrieve the names of employees who work in the same department as 'John'.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to retrieve the names of employees who work in the same department as John.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a query to show the number of users, number of transactions placed, and total order amount per month in the year 2020?
|
Data Science
|
American Express
| null |
coding
| null |
Write a query to show the number of users, number of transactions placed, and total order amount per month in the year 2020. Assume that we are only interested in the monthly reports for a single year (January-December).
|
Data Analytics
|
Wells Fargo
| null |
coding
| null |
Write a query to show the number of users, transactions, and total order amount per month in 2020
|
Data Analytics
|
Citigroup
| null |
coding
| null |
Write a query to update the salary of employees based on their performance rating.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a R markdown report with visualizations or explorable drill downs supporting hypothesis and any recommendations to a given problem.
|
Data Science
|
Stripe
| null |
coding
| null |
Write a R program with tables & inputs to a dataset, tune it and provide visualizations to some interesting insights according to you.
|
Data Science
|
Stripe
| null |
coding
| null |
Write a recursive solution to the staircase problem
|
Data Science
|
Goldman Sachs
| null |
coding
| null |
Write a Singleton class implementation in Notepad?
|
Data Engineer
|
JPMorgan Chase
| null | null | null |
Write a sorting algorithm for a numerical dataset in Python.
|
Python
| null | null |
Yes
|
No
|
Write a SQL query to calculate the total expenditure for each department in 2022?
|
Data Science
|
American Express
| null |
coding
| null |
Write a SQL query to calculate the total expenditure for each department in 2022.
|
Data Analytics
|
Citigroup
| null |
coding
| null |
Write a SQL query to compare the average right swipes for two variants of a feed ranking algorithm
|
SQL
|
PayPal
| null |
coding
| null |
Write a SQL query to find the consecutive number, which appear at least thrice one after another without interruption
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write a SQL query to find the second-highest salary in each department from the Employee_Salaries table. Use window functions like DENSE_RANK() to rank the salaries in each department, and then return the second-highest salary for each department.
|
SQL
|
Citigroup
| null |
coding
| null |
Write a SQL query to find the third purchase of every user in your database
|
SQL
|
PayPal
| null |
coding
| null |
Write a SQL query to get the total amount spent on each item by users who registered in 2022
|
SQL
|
PayPal
| null |
coding
| null |
write a sql query to retrieve unique values from a specific column.
|
Data Analytics
|
Oracle
| null | null | null |
Write a SQL query to select the 2nd highest salary in the engineering department?
|
Data Science
|
American Express
| null |
coding
| null |
Write a SQL query to select the 2nd highest salary in the engineering department.
|
Data Analytics
|
Mastercard
| null |
coding
| null |
Write a SQL query to select the 2nd highest salary in the engineering department.
|
Data Engineer
|
Capital One
| null |
coding
| null |
write a tool/function for reversing a string.
|
Data Analytics
|
Intel
| null | null | null |
Write an algorithm for a tree traversal
|
Data Science
|
Goldman Sachs
| null |
coding
| null |
Write an algorithms that checks validity of brackets in a string.
|
Data Engineer
|
JPMorgan Chase
| null | null | null |
Write an alternate solution to FROM cte WHERE Ranks = 3 OR (department_name NOT IN ( SELECT department_name FROM cte WHERE Ranks = 3 ) AND Ranks = 2);
|
SQL
|
Citigroup
| null |
coding
| null |
write an equation for the multivariance or multiple regression model.
|
Data Analytics
|
AWS
| null | null | null |
Write an SQL query to calculate the total expenditure for each department and return the average expense across all departments.
|
Data Analytics
|
Stripe
| null |
coding
| null |
write an sql query to calculate the total expenditure for each department. additionally, for comparison purposes, return the average expense across all departments.
|
Data Analytics
|
Nvidia
| null | null | null |
Write an sql query to catch a fraud based on transaction data
|
Data Science
|
Robinhood
| null |
coding
| null |
Write an SQL query to count the number of transactions in the annual_payments table marked as paid with an amount of 100 or more.
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write an SQL query to determine the average order value for customers based in the United States who have made 3 or more orders in the last month, using a join between the orders and customers tables.
|
Data Science
|
Chime
| null |
coding
| null |
Write an SQL query to find employee_id of all employees who directly or indirectly report their work to the head of the company
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write an SQL query to find the consecutive number, which appears at least thrice one after another without interruption?
|
Data Engineer
|
JPMorgan Chase
| null |
coding
| null |
Write an SQL query to find the fifth highest salary in the finance department
|
Data Analytics
|
Capital One
| null |
coding
| null |
Write an SQL query to find the names of employees starting with A.
|
SQL
| null | null |
Yes
| null |
Write an SQL query to find the names of employees starting with A.
|
SQL
| null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.