1868. Product of Two Run-Length Encoded Arrays

Description

Run-length encoding is a compression algorithm that allows for an integer array nums with many segments of consecutive repeated numbers to be represented by a (generally smaller) 2D array encoded. Each encoded[i] = [vali, freqi] describes the i^th segment of repeated numbers in nums where vali is the value that is repeated freqi times.

Read more »

721. Accounts Merge

Description

Given a list of accounts where each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of the elements are emails representing emails of the account.

Read more »
0%