MEDIUMCoding & AlgorithmsAI PrepMaximize weighted sum with disjoint adjacent swapsOpenSaveFree Preview