Given a matrix of integers, start from any column of the first row. can only move diagonally left, diagonally right and down. find the max sum possible. This is a DP problem.
Engineer Interview Questions
843,597 engineer interview questions shared by candidates
Schemas - Sales (sales_id, date , customer_id, Product_id, purchase_amount): Product (P_id, P_Name, Brand_id,B_name) Top 10 products in year XXXX Top 10 products in each year List of customers whose total purchase increased from XXXX-XXXX but decreased from XXXX-XXXX. List of customers who bought both brands "X" & "Y" and at-least 2 products in each brand.
Given a string that has various brackets (e.g. “{“, “(“, “[“, “}”, “)”, “]”) built into it, how would one tell that the string has a balanced number of brackets and in order?
Find 2 or more missing numbers in a set of 100 natural numbers
You have 10 boxes of balls (each ball weighing exactly10 gm) with one box with defective balls (each one of the defective balls weigh 9 gm). You are given an electronic weighing machine and only one chance at it. How will find out which box has the defective balls?
Code to find a missing number in an array
String Palindrom, reverse words in a string, find longest substring in a string, duplicate characters in a string and print the count of it.
Write C code to check if an integer is a power of 2 or not in a single line?
A car on a hill of constant slope accelerates from rest under gravity to a point on the hill. If you want to maximize the velocity of the car at this point, where along the length of the car (e.g. downhill or uphill) would you fix an additional mass, if (a) the finishing point is on the slope of the hill or (b) the finishing point is on a flat below the slope of the hill.
We have a cup of hot coffee and a small cold milk out of the fridge. The room temperature is in between these two. When should we add milk to coffee to get the coolest combination earliest ( at the beginning, in the middle, or at the end)?
Viewing 821 - 830 interview questions