...

/

Challenge: Help the Police Officers Catch the Thieves

Challenge: Help the Police Officers Catch the Thieves

Given a number of police officers and thieves, calculate the maximum number of thieves that can be caught.

Problem statement

Implement a function that calculates the number of thieves that can be caught.

Input

The input is an array in which each element contains either a ...