Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

BITMASK1 - Editorial

$
0
0

Problem Link:

Practice
Contest

Difficulty:

CakeWalk

Problem:

Find the minimum amount to purchase all types of stones.

Explanation:

The input is N*N matrix. We can consider it as N different arrays. We just need to add the minimum of every array. This is our required answer. We can do it by inputting one array at a time and finding the minimum of the array and then input the next array.

Solution:

Author's Solution can be found here.


Viewing all articles
Browse latest Browse all 39796

Trending Articles