<commit_before>coding-tests
=========================

Introduction / Description
----------------------

Over the years, we've all been subjected to (or subjected others to) the
dreaded "coding test".  Since I have a bunch of these laying around, I decided
to throw them up on GitHub so that others could laugh at my feeble attempts.

Each of the sub-directories in this repo contains a solution, or group of 
solutions to a coding problem that was presented in a real interview.

Tests
----------------------
* [replace-words](./replace-words) - write a program that takes groups of words that each map
to a specific replacement word. Then process a sentence replacing words in
the sentence that match a word in one of the groups with the corresponding
mapped word.  Also include documentation and tests.  I did this one in both
C++ and Python. Both results are included.

* more coming soon

Support
----------------------

If you have any questions, problems, or suggestions, please submit an
[issue](../../issues)

License & Copyright
----------------------

Copyright 2015 <NAME>

Licensed under the MIT License (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://opensource.org/licenses/MIT

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
<commit_msg>Update README to include new tests added to the repo<commit_after>coding-tests
=========================

Introduction / Description
----------------------

Over the years, we've all been subjected to (or subjected others to) the
dreaded "coding test".  Since I have a bunch of these laying around, I decided
to throw them up on GitHub so that others could laugh at my feeble attempts.

Each of the sub-directories in this repo contains a solution, or group of 
solutions to a coding problem that was presented in a real interview.

Tests
----------------------
* [replace-words](./replace-words) - write a program that takes groups of
words that each map
to a specific replacement word. Then process a sentence replacing words in
the sentence that match a word in one of the groups with the corresponding
mapped word.  Also include documentation and tests.  I did this one in both
[C++](./replace-words/cpp) and [Python](./replace-words/python) for the test.
Both results are included. I later added a [Rust](./replace-words/rust)
implementation just for fun

* [reverse-words](./reverse-words) - given a string, reverse the words, so
that the last word becomes the first word, but each word still reads normally.
I used C++ for this one.

* [display-tree-by-level](./display-tree-by-level) - given a tree data
structure, print the tree one level at a time, without using extensive
secondary storage. The implementation uses Python

* more coming soon

Support
----------------------

If you have any questions, problems, or suggestions, please submit an
[issue](../../issues)

License & Copyright
----------------------

Copyright 2015 <NAME>

Licensed under the MIT License (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://opensource.org/licenses/MIT

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

{'fraction_non_alphanumeric': 0.11321762349799733, 'fraction_numerical': 0.002136181575433912, 'mean_word_length': 3.3761682242990654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1904564', 'n_tokens_mistral': 911, 'n_tokens_neox': 873, 'n_words': 524}