Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtucker/phonebook
https://github.com/jtucker/phonebook
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jtucker/phonebook
- Owner: jtucker
- Created: 2021-05-11T18:27:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T18:28:02.000Z (over 3 years ago)
- Last Synced: 2024-11-20T06:33:58.740Z (2 months ago)
- Language: C#
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Phonebook
### Description
You need to create an executable that would manage a phone book. The commands you need to support are:
- phone-book.exe /path/to/file add [name] [phone]
- phone-book.exe /path/to/file list [skip], [limit]The output of the list operation must be the phone book records in lexical order. You may not sort the data during the list operation, however. All such work must be done in the add operation.
You may keep any state you’ll like in the file system, but there are separate invocations of the program for each step. This program need to support adding 10 million records.
Feel free to constrain the problem in any other way that would make it easier for you to implement it.
### Notes
1. I don't need to write a parser for commandline, most of the thought went into adding and processing the solution