bisect1 Triple sum def triplets(a, b, c): a = list(set(a)) b = list(set(b)) c = list(set(c)) count = 0 a.sort() b.sort() c.sort() frontIdx = 0 backIdx = 0 for ct in b: while frontIdx < len(a) and a[frontIdx] 2019. 5. 12. 이전 1 다음