Data Interview Questions

132,944 data interview questions shared by candidates

Consider the following bit string 11?100 you need to write a method which can replace this question mark with 1 & 0 Output should be: 110100 , 111100 This should be implemented for N number of question mark each time replaced with 1 and then with 0
avatar

Data Science

Interviewed at Shopify

3.4
Jun 19, 2018

Consider the following bit string 11?100 you need to write a method which can replace this question mark with 1 & 0 Output should be: 110100 , 111100 This should be implemented for N number of question mark each time replaced with 1 and then with 0

You are given an integer list coins representing coins of different denominations and an integer amount representing a total amount of money. Return 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, return {}. You may assume that you have an infinite number of each kind of coin. Example 1: Input: coins = [1, 5, 6, 9, 15], amount = 31 Output: {15:2, 1:1} Example 2: Input: coins = [1, 5, 6, 9, 15], amount = 100 Output: {15:6, 9:1, 1:1}
avatar

Data Engineer

Interviewed at Brave AI Lab

4.7
Mar 24, 2023

You are given an integer list coins representing coins of different denominations and an integer amount representing a total amount of money. Return 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, return {}. You may assume that you have an infinite number of each kind of coin. Example 1: Input: coins = [1, 5, 6, 9, 15], amount = 31 Output: {15:2, 1:1} Example 2: Input: coins = [1, 5, 6, 9, 15], amount = 100 Output: {15:6, 9:1, 1:1}

Viewing 1061 - 1070 interview questions

Glassdoor has 132,944 interview questions and reports from Data interviews. Prepare for your interview. Get hired. Love your job.