https://github.com/grepsedawk/shopify_interview.cr
Interview pair thingy with shopify
https://github.com/grepsedawk/shopify_interview.cr
Last synced: 11 months ago
JSON representation
Interview pair thingy with shopify
- Host: GitHub
- URL: https://github.com/grepsedawk/shopify_interview.cr
- Owner: grepsedawk
- License: mit
- Created: 2022-04-20T16:55:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-21T14:28:32.000Z (about 4 years ago)
- Last Synced: 2024-12-31T23:42:08.882Z (over 1 year ago)
- Language: Crystal
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# interview
## Challenge
A Holiday gift exchange is where a group of people are randomly assigned one other person in the group to buy a gift for. This person can be anyone else in the group except for themselves. Everyone should both give and receive a gift.
Design a program that reads a provided CSV file, performs the matching, and then prints out the matches. Assume that you may email the match to the person later, but focus on printing first.
The format of the CSV is name,email on each row.
Don't actually send email for this example. Assume the system or framework has a mail delivery system available.
Sample input files provided:
```csv
Chris,chris@example.com
Felix,felix@example.net
Elizabeth,lizzy1994@example.com
André,andre@example.fr
Milo,milo.milo@example.com
Olivia,olive99@example.net
Hugo,hugo124@example.net
Amit,amit.123@example.com
Ludwig,ludwig@example.net
Raoul,raoul@example.com
```
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
interview:
github: grepsedawk/interview.cr
```
2. Run `shards install`
## Usage
```crystal
require "interview"
```
TODO: Write usage instructions here
## Development
TODO: Write development instructions here
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [grepsedawk](https://github.com/grepsedawk) - creator and maintainer