Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
Wednesday, December 25, 2013
Egg drops
Given k eggs and n floors in a building, find the minimum number of trials required to determine the lowest floor from which when we drop an egg it does not break. Provide a Dynamic Programming solution.
Tuesday, December 24, 2013
Bridge Matching
n cities are sitting on the northern bank of a river and n cities are sitting on the southern bank. You can build a bridge only between cities with the same number. Provide a dynamic programming solution.
Monday, December 23, 2013
LBS
Given an array of integers find the longest bitonic sequence. Provide a dynamic programming solution
Sunday, December 22, 2013
Box Stacking
Given a set of 3d boxes compute the largest stack of boxes. A box can be stacked only on the top of another box with lager base. Provide a dynamic programming solution for stacking the boxes
Saturday, December 21, 2013
Boolean Parentization
given a Boolean expression of and, or, xor, true, false, find the number of ways to parenthesize and evaluate to true. Provide a dynamic programming solution
Friday, December 20, 2013
Box Stacking
Given a set of 3d boxes compute the largest stack of boxes. A box can be stacked only on the top of another box with lager base.
Thursday, December 19, 2013
Maximum value contiguous subsequence
given a real numbers’ array find a contiguous subsequence with max sum. Provide a dynamic programming solution
Wednesday, December 18, 2013
Balanced partition
given an array of integers between 0 and M divide the integers into two set such that difference of sums is minimized. Provide a dynamic programming solution
Tuesday, December 17, 2013
Scheduling
given n jobs each of which with a processing time, a profit and a deadline maximize the profit. Provide a dynamic programming solution
Monday, December 16, 2013
Print the binary representation of an unsigned
Sunday, December 15, 2013
compute whether or not an unsigned number is a power of two
Saturday, December 14, 2013
Find the position with only one bit set in an unsigned
Friday, December 13, 2013
given an unsigned int swap odds and even bits
Thursday, December 12, 2013
Wednesday, December 11, 2013
Add two numbers without using arithmetic operators
Tuesday, December 10, 2013
Subscribe to:
Posts (Atom)