| 69 | """ |
| 70 | |
| 71 | class Solution(object): |
| 72 | def fairCandySwap(self, A, B): |
| 73 | """ |
| 74 | :type A: List[int] |
| 75 | :type B: List[int] |
| 76 | :rtype: List[int] |
| 77 | """ |
| 78 | x = (sum(A) - sum(B)) // 2 |
| 79 | b = set(B) |
| 80 | for i in A: |
| 81 | if i - x in b: |
| 82 | return (i, i-x) |
nothing calls this directly
no outgoing calls
no test coverage detected