Left Pad
Difficulty: MEDIUMCategory: LLDFrequency: 1Asked On 2025-06-02
Problem Statement
The task involves downloading a file called 'left-pad.zip' which contains a file named 'owners.csv' that records which team owns each file. The input is a branch name, such as 'branch-0' or 'branch-1'.
Part 1:
•Compare branch-0 with master to find changed files
•Look up these files in owners.csv to determine which team they belong to
•Print out the team information
Part 2:
•Compare branch-1 with master
•This time there are multiple changed files
•Find the team that has the most changes
•Need to use recommended packages to implement this, cannot use git diff