integer partiontioing given N (a integer) how many ways you can write as N summation of other numbers 5 = 1+ 2 +2 = 2+ 2 + 1 = 1 + 3 +1 = 1 + 4 etc.. write C code to print every combination
Engineer Interview Questions
933,601 engineer interview questions shared by candidates
Given an unsorted array of integers, find first two numbers in the array that equal a given sum.
Given a page size and a number, align the number with the nearest page. (Note: This was a phone interview question. The interviewer and I used an online document to share ideas about this problem.
Given an array, print the largest subarray that has elements in an increasing order
print out all prime numbers in a given string. abc2134kd31 -> 2, 13, 3, 3
Given a string, remove all the duplicate characters (not necessarily consecutive)
Implement the "see and tell" algorithm with a given seed number x and a number of iterations y. Output the result on iteration y
Given a list of integers and a target number, list all pairs that sum up to that number
Given a list of ints, balance the list so that each int appears equally in the list. Return a dictionary where the key is the int and the value is the count needed to balance the list. [1, 1, 2] => {2: 1} [1, 1, 1, 5, 3, 2, 2] => {5: 2, 3: 2, 2: 1}
SQL questions on promotions, sales schema. what %age of products have both non fat and trans fat. find top 5 sales products having promotions what %age of sales happened on first and last day of the promotion Mysql was used and interviewer asked to if this can be done without subquery. Python:- [1,None,1,2,None} --> [1,1,1,2,2] Ensure you take care of case input[None] which means None object. find s in missisipi.
Viewing 261 - 270 interview questions