Estimated time: 30 minutes
Given a file containing a large array of integers, you have to write a function to edit the element at a given index the array and another function to retrieve a specific element from this array.
Since the array is huge, you cannot load it completely in memory. Consequently, you have to naviguate directly through the array in the file by using
You may want to use
fstat(2) to obtain informations about a given file.
|Submission limit||No limitation|
|Category Tags||File, S5|