Efficient approach: If we are allowed to buy and sell only once, then we can use following algorithm. Maximum difference between two elements. Here we… Read More
Tag Archives: Pubmatic
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling… Read More
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling… Read More
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling… Read More
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and selling… Read More
I was interviewed at pubmatic. this was interview experience Round 1. 1. Print the circumference of the tree 2. given an array as stock prices… Read More
The cost of a stock on each day is given in an array, find the max profit that you can make by buying and… Read More