From d44ed31ef9c915b7921c7acc57c11aeeaa0ba978 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sun, 28 Jun 2015 06:34:43 -0400 Subject: [PATCH] Restructured arrays-strings. --- README.md | 14 +++++++------- arrays-strings/compress/__init__.py | 0 arrays-strings/{ => compress}/compress.ipynb | 0 arrays-strings/hash_map/__init__.py | 0 .../{hash-map.ipynb => hash_map/hash_map.ipynb} | 0 arrays-strings/permutation/__init__.py | 0 arrays-strings/{ => permutation}/permutation.ipynb | 0 arrays-strings/replace_char/__init__.py | 0 .../{ => replace_char}/replace_char.ipynb | 0 arrays-strings/reverse_string/__init__.py | 0 .../{ => reverse_string}/reverse_string.cpp | 0 .../{ => reverse_string}/reverse_string.ipynb | 0 arrays-strings/rotation/__init__.py | 0 arrays-strings/{ => rotation}/rotation.ipynb | 0 arrays-strings/unique_chars/__init__.py | 0 .../{ => unique_chars}/unique_chars.ipynb | 0 16 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 arrays-strings/compress/__init__.py rename arrays-strings/{ => compress}/compress.ipynb (100%) create mode 100644 arrays-strings/hash_map/__init__.py rename arrays-strings/{hash-map.ipynb => hash_map/hash_map.ipynb} (100%) create mode 100644 arrays-strings/permutation/__init__.py rename arrays-strings/{ => permutation}/permutation.ipynb (100%) create mode 100644 arrays-strings/replace_char/__init__.py rename arrays-strings/{ => replace_char}/replace_char.ipynb (100%) create mode 100644 arrays-strings/reverse_string/__init__.py rename arrays-strings/{ => reverse_string}/reverse_string.cpp (100%) rename arrays-strings/{ => reverse_string}/reverse_string.ipynb (100%) create mode 100644 arrays-strings/rotation/__init__.py rename arrays-strings/{ => rotation}/rotation.ipynb (100%) create mode 100644 arrays-strings/unique_chars/__init__.py rename arrays-strings/{ => unique_chars}/unique_chars.ipynb (100%) diff --git a/README.md b/README.md index 8954617..80efd79 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,13 @@ This repo is a collection of my notes while sharpening my skills tackling coding | Notebook | Problem Statement | |--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------| -| [unique_chars](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/unique_chars.ipynb) | Determine if a string contains unique characters | -| [reverse_string](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/reverse_string.ipynb) | Reverse characters in a string | -| [permutation](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/permutation.ipynb) | Determine if a string is a permutation of another | -| [replace_char](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/replace_char.ipynb) | Encode spaces in a string in-place | -| [compress](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/compress.ipynb) | Compress a string | -| [rotation](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/rotation.ipynb) | Determine if a string is a rotation of another | -| [hash-map](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/hash-map.ipynb) | Implement a hash table with set, get, and remove methods | +| [unique_chars](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/unique_chars/unique_chars.ipynb) | Determine if a string contains unique characters | +| [reverse_string](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/reverse_string/reverse_string.ipynb) | Reverse characters in a string | +| [permutation](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/permutation/permutation.ipynb) | Determine if a string is a permutation of another | +| [replace_char](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/replace_char/replace_char.ipynb) | Encode spaces in a string in-place | +| [compress](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/compress/compress.ipynb) | Compress a string | +| [rotation](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/rotation/rotation.ipynb) | Determine if a string is a rotation of another | +| [hash-map](http://nbviewer.ipython.org/github/donnemartin/algorithms-data-structures/blob/master/arrays-strings/hash_map/hash_map.ipynb) | Implement a hash table with set, get, and remove methods | ## Linked Lists diff --git a/arrays-strings/compress/__init__.py b/arrays-strings/compress/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arrays-strings/compress.ipynb b/arrays-strings/compress/compress.ipynb similarity index 100% rename from arrays-strings/compress.ipynb rename to arrays-strings/compress/compress.ipynb diff --git a/arrays-strings/hash_map/__init__.py b/arrays-strings/hash_map/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arrays-strings/hash-map.ipynb b/arrays-strings/hash_map/hash_map.ipynb similarity index 100% rename from arrays-strings/hash-map.ipynb rename to arrays-strings/hash_map/hash_map.ipynb diff --git a/arrays-strings/permutation/__init__.py b/arrays-strings/permutation/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arrays-strings/permutation.ipynb b/arrays-strings/permutation/permutation.ipynb similarity index 100% rename from arrays-strings/permutation.ipynb rename to arrays-strings/permutation/permutation.ipynb diff --git a/arrays-strings/replace_char/__init__.py b/arrays-strings/replace_char/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arrays-strings/replace_char.ipynb b/arrays-strings/replace_char/replace_char.ipynb similarity index 100% rename from arrays-strings/replace_char.ipynb rename to arrays-strings/replace_char/replace_char.ipynb diff --git a/arrays-strings/reverse_string/__init__.py b/arrays-strings/reverse_string/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arrays-strings/reverse_string.cpp b/arrays-strings/reverse_string/reverse_string.cpp similarity index 100% rename from arrays-strings/reverse_string.cpp rename to arrays-strings/reverse_string/reverse_string.cpp diff --git a/arrays-strings/reverse_string.ipynb b/arrays-strings/reverse_string/reverse_string.ipynb similarity index 100% rename from arrays-strings/reverse_string.ipynb rename to arrays-strings/reverse_string/reverse_string.ipynb diff --git a/arrays-strings/rotation/__init__.py b/arrays-strings/rotation/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arrays-strings/rotation.ipynb b/arrays-strings/rotation/rotation.ipynb similarity index 100% rename from arrays-strings/rotation.ipynb rename to arrays-strings/rotation/rotation.ipynb diff --git a/arrays-strings/unique_chars/__init__.py b/arrays-strings/unique_chars/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/arrays-strings/unique_chars.ipynb b/arrays-strings/unique_chars/unique_chars.ipynb similarity index 100% rename from arrays-strings/unique_chars.ipynb rename to arrays-strings/unique_chars/unique_chars.ipynb