Skip to content

Commit 2a47138

Browse files
darrylbalderasDarryl-Balderas
authored andcommitted
Implement reviewer's comments
Signed-off-by: darrylbalderas <[email protected]>
1 parent 42b7e23 commit 2a47138

File tree

3 files changed

+20
-21
lines changed

3 files changed

+20
-21
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# data-and-algorithms
22
Let's go over data structures and algorithms together!
3+
34
We will use [Cracking the Coding Interview Book](http://www.crackingthecodinginterview.com/) as reference.
45

5-
Feel free to add your solutions in your channel of your choice 😃
6+
Feel free to add your solutions in your programming language of your choice 😃
7+
68

7-
Run this script to create the folder structure for your favorite programming language
8-
`sh createFolders.sh <Programming Language Name>`
9+
Run the following script to create the directory structure for your programming language
10+
if one is not already created
11+
12+
`bash createDirectories.sh <Programming Language>`
913

1014
## Contributing
1115
---
@@ -28,4 +32,5 @@ Check out [Noé Lomelí](https://github.com/noelomeli)'s video for [visual direc
2832
Request an invite here: [techqueria.org/slack](https://techqueria.org/communities/slack/)
2933

3034
Follow along with the community on the `#data-and-algorithms` channel on our Slack
35+
3136
Make sure to also check out our `#python` `#ruby` `#javascript` and `#golang` channels while you're there

createDirectories.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
DIRECTORY="$(git rev-parse --show-toplevel)"
4+
5+
if [[ $# -lt 1 ]]; then
6+
echo "Usage: bash createDirectories.sh <programming language>" >&2
7+
exit 1
8+
fi
9+
10+
programmingLanguage="$1"
11+
rsync --archive --include='*/' --exclude='*' "${DIRECTORY}/Python/" \
12+
"${DIRECTORY}/${programmingLanguage}/"

createFolders.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)