diff --git a/README.md b/README.md index 67ab98f..9b6afe4 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,36 @@ # data-and-algorithms Let's go over data structures and algorithms together! -We will use Cracking the Coding Interview as reference. -Feel free to add your solutions in your channel of your choice 😃 +We will use [Cracking the Coding Interview Book](http://www.crackingthecodinginterview.com/) as reference. +Feel free to add your solutions in your programming language of your choice 😃 -Directions: -* Fork this repo -* Work on your fork -* When you want to submit a solution, make a pr -* To pull down the most recent changes on this repo, make this branch your upstream -Check out [Noé Lomelí](https://github.com/noelomeli)'s video for visual directions https://www.youtube.com/watch?v=sv97x3yPbrw +Run the following script to create the directory structure for your programming language +if one is not already created -Follow along with the community on the #data-and-algorithms channel on our Slack -Make sure to also check out our #python #ruby #javascript and #golang channels while you're there + `bash createDirectories.sh ` -If you haven't joined yet, request an invite here: techqueria.org/slack +## Contributing +--- + +> To get started... + +1. 🍴 [Fork](https://github.com/techqueria/data-and-algorithms#fork-destination-box) this repository + +2. 🔨 Commit your changes to your forked repo + +3. 🎉 Open a new [pull request](https://github.com/techqueria/data-and-algorithms/compare) with changes from your forked repo and get it approved! + * To pull down the most recent changes on this repo, make this branch your upstream + +Check out [Noé Lomelí](https://github.com/noelomeli)'s video for [visual directions](https://www.youtube.com/watch?v=sv97x3yPbrw) + + +## Join Slack Channel +--- + +Request an invite here: [techqueria.org/slack](https://techqueria.org/communities/slack/) + +Follow along with the community on the `#data-and-algorithms` channel on our Slack + +Make sure to also check out our `#python` `#ruby` `#javascript` and `#golang` channels while you're there diff --git a/createDirectories.sh b/createDirectories.sh new file mode 100644 index 0000000..9b5c68a --- /dev/null +++ b/createDirectories.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +DIRECTORY="$(git rev-parse --show-toplevel)" + +if [[ $# -lt 1 ]]; then + echo "Usage: bash createDirectories.sh " >&2 + exit 1 +fi + +programmingLanguage="$1" +rsync --archive --include='*/' --exclude='*' "${DIRECTORY}/Python/" \ + "${DIRECTORY}/${programmingLanguage}/" + + +find "${DIRECTORY}/${programmingLanguage}/" -mindepth 2 -maxdepth 2 \ + -exec touch -- "{}/empty.txt" \; + +git add "${DIRECTORY}/${programmingLanguage}/" \ No newline at end of file