Search
⌘K

Leetcode 2363. Merge Similar Items

Given two lists of (value, weight) pairs where values are unique within each list, merge entries with the same value by summing their weights and return the resulting list of [value, total_weight] sorted in ascending order by value.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.