Largest File from ls -l Listing

Asked at Intuit · Coding Questions · Difficulty: Medium · Last asked Jan 30, 2026

Given the text output of a directory listing in the Unix `ls -l` long format, find the largest regular file and return its name. File names may contain spaces.

Loading the problem…