interview
Version, currently main branch1 version
- main branchlatestApr 21, 2022
github.com/grepsedawk/shopify_interview.cr
Interview pair thingy with shopify
Installation
# Add this to your shard.yml
dependencies:
interview:
github: grepsedawk/shopify_interview.cr
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.4.0- License
- MIT
- Author
- grepsedawk
- Target
robotfrom src/robot.cr
Dependencies
Runtime Dependencies
- habitat*github: luckyframework/habitat
Development Dependencies
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:
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
-
Add the dependency to your
shard.yml:dependencies: interview: github: grepsedawk/interview.cr -
Run
shards install
Usage
require "interview"
TODO: Write usage instructions here
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/grepsedawk/interview.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- grepsedawk - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Apr 21, 2022
- Crystal
1.4.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/grepsedawk/shopify_interview.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1