LeetCode Question · May 2019 · Los Angeles

Uber | Phone Screen | Merge tuples

3 upvotes 1,539 views 7 replies

Question Details

Given a list of tuples, find the list which belong to same tuple. Input (Matrix): int input[][] = {{1,2},{3,4},{7,2},{5,12},{11,3},{9,7}} Output: ArrayList of Arraylist: {{1,2,7,9},{3,4,11},{5,12}} Note: Order of output is not important. My approach…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Matrix