You work in a post office, where each worker is either a good postman or a bad postman. A good postman always delivers all his mail, and a bad postman always loses all his mail. Each day, you write down the names of all the postmen working that day. If all the mail gets delivered, you add that day to your white list. If at least one piece of mail gets lost, you add the day to your black list. You would like to determine the number of good and bad postmen in your office.
You will be given two String[]s, white and black. Each element of white represents a single day from your white list, and each element of black represents a single day from your black list. Each element of white and black is a single space delimited list of the names of the postmen who worked that day. The workers' names will not contain spaces. Return a int[] containing exactly 3 elements, where the first element is the number of good postmen, the second element is the number of bad postmen, and the third element is the number of undefined postmen. An undefined postman is a worker whose type cannot be determined with the information given.
|