Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
O(|m-n|) time and O(1) space solution in Speedy category for Stones Placing by StefanPochmann
def stones_placing(*a):
c, r = sorted(a, key=len)
for i in range(len(c) - 1, len(r)):
if r[-i] == r[~i]:
return r[-i]
return c[1]
June 25, 2025
Comments: