contest

[Solved] Selling Pieces of Wood Contest Problem

[Solved] Selling Pieces of Wood Contest Problem

Selling Pieces of Wood: You are given two integers m and n that represent the height and width of a rectangular piece of wood. You are also given a 2D integer array prices, where prices[i] = [hi, wi, pricei] indicates you can sell a rectangular piece of…

[Solved] Sunrise Contest Problem

[Solved] Sunrise Contest Problem

Sunrise: Ninja is given an array ‘A’ of size ‘N’. Each element of the array represents the height of the ‘ith’ building (from left to right). He can choose any of the buildings. From that building, he wants to see…