1p3a Experience · Sep 2025

Meta Online Test: Cloud Storage System Coding Challenge

4 replies

Interview Experience

This post was last edited by Anonymous on 2025-09-27 18:27. The Cloud Storage System mentioned in the forum has a total of 90 minutes and 4 levels. You must pass all unit tests for the current level t

Full Details

This post was last edited by Anonymous on 2025-09-27 18:27. The Cloud Storage System mentioned in the forum has a total of 90 minutes and 4 levels. You must pass all unit tests for the current level to unlock the next level. Level 1: Relatively standard addFile/copyFile/getFileSize Level 2: getLargestFile(prefix, suffix)

Returns all filenames and corresponding sizes matching the prefix and suffix. Sort by size in descending order; if there's a tie, sort by filename in ascending order. Level 3: addUser/addFileBy Adds the concept of users. Each file has an owner, and each user has a limited capacity. updateCapacity() If the used space is greater than the new capacity, the largest file owned by the user needs to be continuously deleted until the used space is less than the capacity. Level 4: compressFile/decompressFile Quite intuitive. Compression reduces the file size to half and adds "compressed" to the filename suffix. Decompression is the normal reverse operation. There will be more corner cases at this level, so you need to allow some time for debugging if you want to pass them all.

About This Question

This is a candidate experience report from a meta interview for a swe role during the oa round reported in 2025.

It covers the following topics: Sorting .

Topics