- #1
kolleamm
- 477
- 44
What is the time complexity for an OS to find a file? Is it O(1) time?
Let's say for example, you had a billion files in a single folder, and you wanted to load a file into a string in your program, would the system find a specific file right away, or would there be a longer wait?
Let's assume an OS like Windows.
Let's say for example, you had a billion files in a single folder, and you wanted to load a file into a string in your program, would the system find a specific file right away, or would there be a longer wait?
Let's assume an OS like Windows.