Search results for "275ccb06dc1bfda6335db1619f7996b2" in md5 (4)

/mu/ - KPOP GENERAL
Anonymous No.127376963
>>127376937
wrong
/mu/ - KPOP GENERAL
Anonymous No.127154577
This is what they took from us
/g/ - /utwg/ - Unemployable Tech Workers General
Anonymous No.106003427
>>106003058
def maximumGain(self, s: str, x: int, y: int) -> int:
def remove_pairs(s, first, second, points):
stack = []
score = 0

for ch in s:
if stack and stack[-1] == first and ch == second:
score += points
stack.pop()
else:
stack.append(ch)

return "".join(stack), score

if x >= y:
# remove "ab" first
s, first_score = remove_pairs(s, "a", "b", x)
_, second_score = remove_pairs(s, "b", "a", y)
else:
# remove "ba" first
s, first_score = remove_pairs(s, "b", "a", y)
_, second_score = remove_pairs(s, "a", "b", x)

return first_score + second_score
/mu/ - KPOP GENERAL
Anonymous No.127139512