Amazon Interview Question
Software Engineer / DevelopersI would go about starting off with a FS interface like:
interface Node {
String getName();
BufferedInputOutputStream getDataStream();
}
interface FS {
public Node openFile(String path, int params);
public void closeFile(Node);
public List<Node> listNodes(String path);
}
Then going about and implementing a specific nodetype and a specific FS.
The point is to leave out too many details and focus on what is important
:o :O
- Yoda February 15, 2010