diff --git a/book/book_first_edition.pdf b/book/book_first_edition.pdf deleted file mode 100644 index 49bc67f..0000000 Binary files a/book/book_first_edition.pdf and /dev/null differ diff --git a/book/book_second_edition.pdf b/book/book_second_edition.pdf index ff90f0d..fcc036c 100644 Binary files a/book/book_second_edition.pdf and b/book/book_second_edition.pdf differ diff --git a/src/builtin_structures/arrays_and_strings/reverse_words.py b/src/builtin_structures/arrays_and_strings/reverse_words.py deleted file mode 100644 index 0055cec..0000000 --- a/src/builtin_structures/arrays_and_strings/reverse_words.py +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/python3 - -# Mari von Steinkirch @ 2013 -# mari.wahl9@gmail.com - -# Bernardo Sulzbach (mafagafo) @ 2014 -# 1449441@gmail.com - - -def reverse_words(string): - """ - Reverse the order of the words in a sentence. - :param string: the string which words wil lbe reversed. - :return: the reversed string. - """ - l1 = string.split(' ') - l1.reverse() - return ' '.join(l1) - - -def reverse_words_brute(string): - """ - Reverse the order of the words in a sentence. - :param string: the string which words wil lbe reversed. - :return: the reversed string. - """ - word, sentence = [], [] - for character in string: - if character != ' ': - word.append(character) - else: - # So we do not keep multiple whitespaces. An empty list evaluates to False. - if word: - sentence.append(''.join(word)) - word = [] - # So we do not keep multiple whitespaces. An empty list evaluates to False. - if word != '': - sentence.append(''.join(word)) - sentence.reverse() - return ' '.join(sentence) - -if __name__ == '__main__': - phrase = 'I love Google, Fedora & Python!' - print(reverse_words(phrase)) - print(reverse_words_brute(phrase)) diff --git a/src/builtin_structures/strings/__init__.py b/src/builtin_structures/strings/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/src/builtin_structures/strings/reversing_words_setence.py b/src/builtin_structures/strings/reversing_words_setence.py deleted file mode 100644 index cb392c1..0000000 --- a/src/builtin_structures/strings/reversing_words_setence.py +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/python3 -# mari von steinkirch @2013 -# steinkirch at gmail - - -def reversing_words_setence(str1): - ''' reverse the words in a sentence''' - words = str1.split() - rev_set = " ".join(reversed(words)) - return rev_set - - -def test_reversing_words_setence(module_name='this module'): - str1 = "Buffy is a Vampire Slayer" - assert(reversing_words_setence(str1) == "Slayer Vampire a is Buffy") - - s = 'Tests in {name} have {con}!' - print(s.format(name=module_name, con='passed')) - - -if __name__ == '__main__': - test_reversing_words_setence() - diff --git a/src/builtin_structures/dicts/Counter_example.py b/src/neat_builtin_examples/dicts/Counter_example.py similarity index 100% rename from src/builtin_structures/dicts/Counter_example.py rename to src/neat_builtin_examples/dicts/Counter_example.py diff --git a/src/builtin_structures/dicts/OrderedDict_example.py b/src/neat_builtin_examples/dicts/OrderedDict_example.py similarity index 100% rename from src/builtin_structures/dicts/OrderedDict_example.py rename to src/neat_builtin_examples/dicts/OrderedDict_example.py diff --git a/src/builtin_structures/dicts/__init__.py b/src/neat_builtin_examples/dicts/__init__.py similarity index 100% rename from src/builtin_structures/dicts/__init__.py rename to src/neat_builtin_examples/dicts/__init__.py diff --git a/src/builtin_structures/dicts/count_unique_words_.py b/src/neat_builtin_examples/dicts/count_unique_words_.py similarity index 100% rename from src/builtin_structures/dicts/count_unique_words_.py rename to src/neat_builtin_examples/dicts/count_unique_words_.py diff --git a/src/builtin_structures/dicts/defaultdict_example.py b/src/neat_builtin_examples/dicts/defaultdict_example.py similarity index 100% rename from src/builtin_structures/dicts/defaultdict_example.py rename to src/neat_builtin_examples/dicts/defaultdict_example.py diff --git a/src/builtin_structures/dicts/delete_duplicate_char_str.py b/src/neat_builtin_examples/dicts/delete_duplicate_char_str.py similarity index 100% rename from src/builtin_structures/dicts/delete_duplicate_char_str.py rename to src/neat_builtin_examples/dicts/delete_duplicate_char_str.py diff --git a/src/builtin_structures/dicts/find_anagram_hash_function.py b/src/neat_builtin_examples/dicts/find_anagram_hash_function.py similarity index 100% rename from src/builtin_structures/dicts/find_anagram_hash_function.py rename to src/neat_builtin_examples/dicts/find_anagram_hash_function.py diff --git a/src/builtin_structures/dicts/find_dice_probabilities.py b/src/neat_builtin_examples/dicts/find_dice_probabilities.py similarity index 100% rename from src/builtin_structures/dicts/find_dice_probabilities.py rename to src/neat_builtin_examples/dicts/find_dice_probabilities.py diff --git a/src/builtin_structures/dicts/find_top_N_recurring_words.py b/src/neat_builtin_examples/dicts/find_top_N_recurring_words.py similarity index 100% rename from src/builtin_structures/dicts/find_top_N_recurring_words.py rename to src/neat_builtin_examples/dicts/find_top_N_recurring_words.py diff --git a/src/builtin_structures/dicts/runtime_dicts_with_timeit_module.py b/src/neat_builtin_examples/dicts/runtime_dicts_with_timeit_module.py similarity index 100% rename from src/builtin_structures/dicts/runtime_dicts_with_timeit_module.py rename to src/neat_builtin_examples/dicts/runtime_dicts_with_timeit_module.py diff --git a/src/builtin_structures/dicts/setdeault_example.py b/src/neat_builtin_examples/dicts/setdeault_example.py similarity index 100% rename from src/builtin_structures/dicts/setdeault_example.py rename to src/neat_builtin_examples/dicts/setdeault_example.py diff --git a/src/builtin_structures/dicts/veirfy_two_strings_are_anagrams.py b/src/neat_builtin_examples/dicts/veirfy_two_strings_are_anagrams.py similarity index 100% rename from src/builtin_structures/dicts/veirfy_two_strings_are_anagrams.py rename to src/neat_builtin_examples/dicts/veirfy_two_strings_are_anagrams.py diff --git a/src/builtin_structures/lists/__init__.py b/src/neat_builtin_examples/lists_and_strings/__init__.py similarity index 100% rename from src/builtin_structures/lists/__init__.py rename to src/neat_builtin_examples/lists_and_strings/__init__.py diff --git a/src/builtin_structures/arrays_and_strings/comb_str.py b/src/neat_builtin_examples/lists_and_strings/comb_str.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/comb_str.py rename to src/neat_builtin_examples/lists_and_strings/comb_str.py diff --git a/src/builtin_structures/arrays_and_strings/conv_str2int.py b/src/neat_builtin_examples/lists_and_strings/conv_str2int.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/conv_str2int.py rename to src/neat_builtin_examples/lists_and_strings/conv_str2int.py diff --git a/src/builtin_structures/strings/count_unique_words.py b/src/neat_builtin_examples/lists_and_strings/count_unique_words.py similarity index 100% rename from src/builtin_structures/strings/count_unique_words.py rename to src/neat_builtin_examples/lists_and_strings/count_unique_words.py diff --git a/src/builtin_structures/arrays_and_strings/find_0_MxN_replace_cols_rows.py b/src/neat_builtin_examples/lists_and_strings/find_0_MxN_replace_cols_rows.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/find_0_MxN_replace_cols_rows.py rename to src/neat_builtin_examples/lists_and_strings/find_0_MxN_replace_cols_rows.py diff --git a/src/builtin_structures/strings/find_all_permutations_string.py b/src/neat_builtin_examples/lists_and_strings/find_all_permutations_string.py similarity index 100% rename from src/builtin_structures/strings/find_all_permutations_string.py rename to src/neat_builtin_examples/lists_and_strings/find_all_permutations_string.py diff --git a/src/builtin_structures/lists/find_closest_num_seq.py b/src/neat_builtin_examples/lists_and_strings/find_closest_num_seq.py similarity index 100% rename from src/builtin_structures/lists/find_closest_num_seq.py rename to src/neat_builtin_examples/lists_and_strings/find_closest_num_seq.py diff --git a/src/builtin_structures/lists/find_duplicate_num_array.py b/src/neat_builtin_examples/lists_and_strings/find_duplicate_num_array.py similarity index 100% rename from src/builtin_structures/lists/find_duplicate_num_array.py rename to src/neat_builtin_examples/lists_and_strings/find_duplicate_num_array.py diff --git a/src/builtin_structures/strings/find_edit_distance.py b/src/neat_builtin_examples/lists_and_strings/find_edit_distance.py similarity index 100% rename from src/builtin_structures/strings/find_edit_distance.py rename to src/neat_builtin_examples/lists_and_strings/find_edit_distance.py diff --git a/src/builtin_structures/arrays_and_strings/find_first_non_repetead_char.py b/src/neat_builtin_examples/lists_and_strings/find_first_non_repetead_char.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/find_first_non_repetead_char.py rename to src/neat_builtin_examples/lists_and_strings/find_first_non_repetead_char.py diff --git a/src/builtin_structures/arrays_and_strings/find_if_is_substr.py b/src/neat_builtin_examples/lists_and_strings/find_if_is_substr.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/find_if_is_substr.py rename to src/neat_builtin_examples/lists_and_strings/find_if_is_substr.py diff --git a/src/builtin_structures/arrays_and_strings/find_if_only_unique_chars.py b/src/neat_builtin_examples/lists_and_strings/find_if_only_unique_chars.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/find_if_only_unique_chars.py rename to src/neat_builtin_examples/lists_and_strings/find_if_only_unique_chars.py diff --git a/src/builtin_structures/lists/find_long_con_inc_subseq.py b/src/neat_builtin_examples/lists_and_strings/find_long_con_inc_subseq.py similarity index 100% rename from src/builtin_structures/lists/find_long_con_inc_subseq.py rename to src/neat_builtin_examples/lists_and_strings/find_long_con_inc_subseq.py diff --git a/src/builtin_structures/lists/find_majority_in_seq.py b/src/neat_builtin_examples/lists_and_strings/find_majority_in_seq.py similarity index 100% rename from src/builtin_structures/lists/find_majority_in_seq.py rename to src/neat_builtin_examples/lists_and_strings/find_majority_in_seq.py diff --git a/src/builtin_structures/lists/find_max_profit.py b/src/neat_builtin_examples/lists_and_strings/find_max_profit.py similarity index 100% rename from src/builtin_structures/lists/find_max_profit.py rename to src/neat_builtin_examples/lists_and_strings/find_max_profit.py diff --git a/src/builtin_structures/lists/find_max_subarray.py b/src/neat_builtin_examples/lists_and_strings/find_max_subarray.py similarity index 100% rename from src/builtin_structures/lists/find_max_subarray.py rename to src/neat_builtin_examples/lists_and_strings/find_max_subarray.py diff --git a/src/builtin_structures/strings/find_palindrome_rec.py b/src/neat_builtin_examples/lists_and_strings/find_palindrome_rec.py similarity index 100% rename from src/builtin_structures/strings/find_palindrome_rec.py rename to src/neat_builtin_examples/lists_and_strings/find_palindrome_rec.py diff --git a/src/builtin_structures/lists/find_product_without_division.py b/src/neat_builtin_examples/lists_and_strings/find_product_without_division.py similarity index 100% rename from src/builtin_structures/lists/find_product_without_division.py rename to src/neat_builtin_examples/lists_and_strings/find_product_without_division.py diff --git a/src/builtin_structures/strings/find_subst_in_str.py b/src/neat_builtin_examples/lists_and_strings/find_subst_in_str.py similarity index 100% rename from src/builtin_structures/strings/find_subst_in_str.py rename to src/neat_builtin_examples/lists_and_strings/find_subst_in_str.py diff --git a/src/builtin_structures/lists/find_two_missing_numbers_in_sequence.py b/src/neat_builtin_examples/lists_and_strings/find_two_missing_numbers_in_sequence.py similarity index 100% rename from src/builtin_structures/lists/find_two_missing_numbers_in_sequence.py rename to src/neat_builtin_examples/lists_and_strings/find_two_missing_numbers_in_sequence.py diff --git a/src/builtin_structures/lists/greatest_sum_sub_array.py b/src/neat_builtin_examples/lists_and_strings/greatest_sum_sub_array.py similarity index 100% rename from src/builtin_structures/lists/greatest_sum_sub_array.py rename to src/neat_builtin_examples/lists_and_strings/greatest_sum_sub_array.py diff --git a/src/builtin_structures/strings/longest_common_substring.py b/src/neat_builtin_examples/lists_and_strings/longest_common_substring.py similarity index 100% rename from src/builtin_structures/strings/longest_common_substring.py rename to src/neat_builtin_examples/lists_and_strings/longest_common_substring.py diff --git a/src/builtin_structures/lists/merge_two_sorted_arrays.py b/src/neat_builtin_examples/lists_and_strings/merge_two_sorted_arrays.py similarity index 100% rename from src/builtin_structures/lists/merge_two_sorted_arrays.py rename to src/neat_builtin_examples/lists_and_strings/merge_two_sorted_arrays.py diff --git a/src/builtin_structures/arrays_and_strings/perm_str.py b/src/neat_builtin_examples/lists_and_strings/perm_str.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/perm_str.py rename to src/neat_builtin_examples/lists_and_strings/perm_str.py diff --git a/src/builtin_structures/lists/print_all_seq_with_cont_num.py b/src/neat_builtin_examples/lists_and_strings/print_all_seq_with_cont_num.py similarity index 100% rename from src/builtin_structures/lists/print_all_seq_with_cont_num.py rename to src/neat_builtin_examples/lists_and_strings/print_all_seq_with_cont_num.py diff --git a/src/builtin_structures/arrays_and_strings/remove_specified_char_from_str.py b/src/neat_builtin_examples/lists_and_strings/remove_specified_char_from_str.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/remove_specified_char_from_str.py rename to src/neat_builtin_examples/lists_and_strings/remove_specified_char_from_str.py diff --git a/src/builtin_structures/lists/removing_duplicates_seq.py b/src/neat_builtin_examples/lists_and_strings/removing_duplicates_seq.py similarity index 100% rename from src/builtin_structures/lists/removing_duplicates_seq.py rename to src/neat_builtin_examples/lists_and_strings/removing_duplicates_seq.py diff --git a/src/builtin_structures/arrays_and_strings/reverse_str.py b/src/neat_builtin_examples/lists_and_strings/reverse_str.py similarity index 90% rename from src/builtin_structures/arrays_and_strings/reverse_str.py rename to src/neat_builtin_examples/lists_and_strings/reverse_str.py index e14ad79..5752173 100644 --- a/src/builtin_structures/arrays_and_strings/reverse_str.py +++ b/src/neat_builtin_examples/lists_and_strings/reverse_str.py @@ -1,12 +1,8 @@ -#!/usr/bin/python3 +#!/usr/bin/env python -# Mari von Steinkirch @ 2013 -# mari.wahl9@gmail.com +author = "Mari Wahl" +email = "marina.w4hl@gmail.com" -# Bernardo Sulzbach (mafagafo) @ 2014 -# 1449441@gmail.com - -# This file defines and compares four different functions that reverse a string. # timeit is used for benchmarking. from timeit import timeit diff --git a/src/builtin_structures/strings/reverse_string_inplace_rec.py b/src/neat_builtin_examples/lists_and_strings/reverse_string_inplace_rec.py similarity index 85% rename from src/builtin_structures/strings/reverse_string_inplace_rec.py rename to src/neat_builtin_examples/lists_and_strings/reverse_string_inplace_rec.py index 3157a50..f2f164d 100644 --- a/src/builtin_structures/strings/reverse_string_inplace_rec.py +++ b/src/neat_builtin_examples/lists_and_strings/reverse_string_inplace_rec.py @@ -1,6 +1,8 @@ -#!/usr/bin/python3 -# mari von steinkirch @2013 -# steinkirch at gmail +#!/usr/bin/env python + +author = "Mari Wahl" +email = "marina.w4hl@gmail.com" + def reverse_string_inplace_rec(s): @@ -8,14 +10,14 @@ def reverse_string_inplace_rec(s): if s: s = s[-1] + reverse_string_inplace_rec(s[:-1]) return s - + def reverse_string_inplace(s): s = s[::-1] - if s[0] == '\0': + if s[0] == '\0': s = s[1:] s += '\0' return s - + def test_reverse_string_inplace_rec(module_name='this module'): @@ -24,7 +26,7 @@ def test_reverse_string_inplace_rec(module_name='this module'): assert(reverse_string_inplace(s) == 'olleh') assert(reverse_string_inplace(s2) == 'yffub\0') assert(reverse_string_inplace_rec(s) == 'olleh') - + s = 'Tests in {name} have {con}!' print(s.format(name=module_name, con='passed')) diff --git a/src/neat_builtin_examples/lists_and_strings/reverse_words_sentence.py b/src/neat_builtin_examples/lists_and_strings/reverse_words_sentence.py new file mode 100644 index 0000000..46c9acf --- /dev/null +++ b/src/neat_builtin_examples/lists_and_strings/reverse_words_sentence.py @@ -0,0 +1,118 @@ + +#!/usr/bin/env python + +author = "Mari Wahl" +email = "marina.w4hl@gmail.com" + +""" Here we want to invert the words in a string, without reverting +the words. + +Important things to remember: + +1. python strings are immutable +2. The last word doesn't not end by a space, so we need to make +sure we get the last word too + +The solution consists of two loops, +1) revert all the characters with 2 pointers +2) search for spaces and revert the words, two pointers too +3) You can represent space as ' ' or as u'\u0020' +4) Do we want to look to ! ; , . etc? + +In the solutions bellow, we show how to do this logic, and how to use +python's methods to do in a few lines +""" + + +# EXAMPLE NUMBER 1 + +def reverser(string1, p1=0, p2=None): + if len(string1) < 2: + return string1 + p2 = p2 or len(string1)-1 + while p1 < p2: + aux = string1[p1] + string1[p1] = string1[p2] + string1[p2] = aux + p1 += 1 + p2 -= 1 + + + +def reversing_words_setence_logic(string1): + reverser(string1) + p = 0 + start = 0 + final = [] + while p < len(string1): + if string1[p] == u"\u0020": + reverser(string1,start,p-1) + start = p+1 + p += 1 + reverser(string1,start,p-1) + + return "".join(string1) + + + +# EXAMPLE NUMBER 2 AND 3 USING PYTHON AWESOMESAUCE + +def reversing_words_setence_py(str1): + ''' reverse the words in a sentence''' + words = str1.split() + rev_set = " ".join(reversed(words)) + return rev_set + +def reversing_words_setence_py2(str1): + """ + Reverse the order of the words in a sentence. + :param string: the string which words wilL be reversed. + :return: the reversed string. + """ + words = str1.split(' ') + words.reverse() + return ' '.join(words) + + +# EXAMPLE 4, VERY SILLY, USING BRUTE FORCE +# +def reverse_words_brute(string): + """ + Reverse the order of the words in a sentence. + :param string: the string which words wil lbe reversed. + :return: the reversed string. + """ + word, sentence = [], [] + for character in string: + if character != ' ': + word.append(character) + else: + # So we do not keep multiple whitespaces. An empty list evaluates to False. + if word: + sentence.append(''.join(word)) + word = [] + # So we do not keep multiple whitespaces. An empty list evaluates to False. + if word != '': + sentence.append(''.join(word)) + sentence.reverse() + return ' '.join(sentence) + + + +# TESTS + +def test_reversing_words_sentence(): + str1 = "Buffy is a Vampire Slayer" + assert(reversing_words_setence_py(str1) == "Slayer Vampire a is Buffy") + assert(reversing_words_setence_py2(str1) == "Slayer Vampire a is Buffy") + assert(reverse_words_brute(str1) == "Slayer Vampire a is Buffy") + assert(reversing_words_setence_logic(list(str1)) == "Slayer Vampire a is Buffy") + + print("Tests passed!") + + + +if __name__ == '__main__': + test_reversing_words_sentence() + + diff --git a/src/builtin_structures/arrays_and_strings/rotate_NxN.py b/src/neat_builtin_examples/lists_and_strings/rotate_NxN.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/rotate_NxN.py rename to src/neat_builtin_examples/lists_and_strings/rotate_NxN.py diff --git a/src/builtin_structures/lists/runtime_lists_with_timeit_module.py b/src/neat_builtin_examples/lists_and_strings/runtime_lists_with_timeit_module.py similarity index 100% rename from src/builtin_structures/lists/runtime_lists_with_timeit_module.py rename to src/neat_builtin_examples/lists_and_strings/runtime_lists_with_timeit_module.py diff --git a/src/builtin_structures/arrays_and_strings/simple_str_comprension.py b/src/neat_builtin_examples/lists_and_strings/simple_str_comprension.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/simple_str_comprension.py rename to src/neat_builtin_examples/lists_and_strings/simple_str_comprension.py diff --git a/src/builtin_structures/lists/sum_two_numbers_sequence.py b/src/neat_builtin_examples/lists_and_strings/sum_two_numbers_sequence.py similarity index 100% rename from src/builtin_structures/lists/sum_two_numbers_sequence.py rename to src/neat_builtin_examples/lists_and_strings/sum_two_numbers_sequence.py diff --git a/src/builtin_structures/arrays_and_strings/verify_if_perm.py b/src/neat_builtin_examples/lists_and_strings/verify_if_perm.py similarity index 100% rename from src/builtin_structures/arrays_and_strings/verify_if_perm.py rename to src/neat_builtin_examples/lists_and_strings/verify_if_perm.py diff --git a/src/builtin_structures/numbers/__init__.py b/src/neat_builtin_examples/numbers/__init__.py similarity index 100% rename from src/builtin_structures/numbers/__init__.py rename to src/neat_builtin_examples/numbers/__init__.py diff --git a/src/builtin_structures/numbers/convert_dec_to_any_base_rec.py b/src/neat_builtin_examples/numbers/convert_dec_to_any_base_rec.py similarity index 100% rename from src/builtin_structures/numbers/convert_dec_to_any_base_rec.py rename to src/neat_builtin_examples/numbers/convert_dec_to_any_base_rec.py diff --git a/src/builtin_structures/numbers/convert_from_decimal.py b/src/neat_builtin_examples/numbers/convert_from_decimal.py similarity index 100% rename from src/builtin_structures/numbers/convert_from_decimal.py rename to src/neat_builtin_examples/numbers/convert_from_decimal.py diff --git a/src/builtin_structures/numbers/convert_from_decimal_larger_bases.py b/src/neat_builtin_examples/numbers/convert_from_decimal_larger_bases.py similarity index 100% rename from src/builtin_structures/numbers/convert_from_decimal_larger_bases.py rename to src/neat_builtin_examples/numbers/convert_from_decimal_larger_bases.py diff --git a/src/builtin_structures/numbers/convert_to_decimal.py b/src/neat_builtin_examples/numbers/convert_to_decimal.py similarity index 100% rename from src/builtin_structures/numbers/convert_to_decimal.py rename to src/neat_builtin_examples/numbers/convert_to_decimal.py diff --git a/src/builtin_structures/numbers/find_fibonacci_seq.py b/src/neat_builtin_examples/numbers/find_fibonacci_seq.py similarity index 100% rename from src/builtin_structures/numbers/find_fibonacci_seq.py rename to src/neat_builtin_examples/numbers/find_fibonacci_seq.py diff --git a/src/builtin_structures/numbers/finding_gcd.py b/src/neat_builtin_examples/numbers/finding_gcd.py similarity index 100% rename from src/builtin_structures/numbers/finding_gcd.py rename to src/neat_builtin_examples/numbers/finding_gcd.py diff --git a/src/builtin_structures/numbers/finding_if_prime.py b/src/neat_builtin_examples/numbers/finding_if_prime.py similarity index 100% rename from src/builtin_structures/numbers/finding_if_prime.py rename to src/neat_builtin_examples/numbers/finding_if_prime.py diff --git a/src/builtin_structures/numbers/generate_prime.py b/src/neat_builtin_examples/numbers/generate_prime.py similarity index 100% rename from src/builtin_structures/numbers/generate_prime.py rename to src/neat_builtin_examples/numbers/generate_prime.py diff --git a/src/builtin_structures/numbers/search_entry_matrix.py b/src/neat_builtin_examples/numbers/search_entry_matrix.py similarity index 100% rename from src/builtin_structures/numbers/search_entry_matrix.py rename to src/neat_builtin_examples/numbers/search_entry_matrix.py diff --git a/src/builtin_structures/numbers/testing_floats.py b/src/neat_builtin_examples/numbers/testing_floats.py similarity index 100% rename from src/builtin_structures/numbers/testing_floats.py rename to src/neat_builtin_examples/numbers/testing_floats.py diff --git a/src/builtin_structures/numbers/testing_numpy.py b/src/neat_builtin_examples/numbers/testing_numpy.py similarity index 100% rename from src/builtin_structures/numbers/testing_numpy.py rename to src/neat_builtin_examples/numbers/testing_numpy.py diff --git a/src/builtin_structures/numbers/testing_numpy_speed.py b/src/neat_builtin_examples/numbers/testing_numpy_speed.py similarity index 100% rename from src/builtin_structures/numbers/testing_numpy_speed.py rename to src/neat_builtin_examples/numbers/testing_numpy_speed.py diff --git a/src/builtin_structures/numbers/testing_random.py b/src/neat_builtin_examples/numbers/testing_random.py similarity index 100% rename from src/builtin_structures/numbers/testing_random.py rename to src/neat_builtin_examples/numbers/testing_random.py diff --git a/src/builtin_structures/sets/__init__.py b/src/neat_builtin_examples/sets/__init__.py similarity index 100% rename from src/builtin_structures/sets/__init__.py rename to src/neat_builtin_examples/sets/__init__.py diff --git a/src/builtin_structures/sets/bit_operations/bit_array.py b/src/neat_builtin_examples/sets/bit_operations/bit_array.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/bit_array.py rename to src/neat_builtin_examples/sets/bit_operations/bit_array.py diff --git a/src/builtin_structures/sets/bit_operations/clear_bits.py b/src/neat_builtin_examples/sets/bit_operations/clear_bits.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/clear_bits.py rename to src/neat_builtin_examples/sets/bit_operations/clear_bits.py diff --git a/src/builtin_structures/sets/bit_operations/find_bit_len.py b/src/neat_builtin_examples/sets/bit_operations/find_bit_len.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/find_bit_len.py rename to src/neat_builtin_examples/sets/bit_operations/find_bit_len.py diff --git a/src/builtin_structures/sets/bit_operations/find_how_many_1_binary.py b/src/neat_builtin_examples/sets/bit_operations/find_how_many_1_binary.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/find_how_many_1_binary.py rename to src/neat_builtin_examples/sets/bit_operations/find_how_many_1_binary.py diff --git a/src/builtin_structures/sets/bit_operations/get_bit.py b/src/neat_builtin_examples/sets/bit_operations/get_bit.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/get_bit.py rename to src/neat_builtin_examples/sets/bit_operations/get_bit.py diff --git a/src/builtin_structures/sets/bit_operations/get_float_rep_bin.py b/src/neat_builtin_examples/sets/bit_operations/get_float_rep_bin.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/get_float_rep_bin.py rename to src/neat_builtin_examples/sets/bit_operations/get_float_rep_bin.py diff --git a/src/builtin_structures/sets/bit_operations/insert_small_bin_into_big_bin.py b/src/neat_builtin_examples/sets/bit_operations/insert_small_bin_into_big_bin.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/insert_small_bin_into_big_bin.py rename to src/neat_builtin_examples/sets/bit_operations/insert_small_bin_into_big_bin.py diff --git a/src/builtin_structures/sets/bit_operations/next_with_same_num_1s.py b/src/neat_builtin_examples/sets/bit_operations/next_with_same_num_1s.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/next_with_same_num_1s.py rename to src/neat_builtin_examples/sets/bit_operations/next_with_same_num_1s.py diff --git a/src/builtin_structures/sets/bit_operations/num_bits_to_convert_2_nums.py b/src/neat_builtin_examples/sets/bit_operations/num_bits_to_convert_2_nums.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/num_bits_to_convert_2_nums.py rename to src/neat_builtin_examples/sets/bit_operations/num_bits_to_convert_2_nums.py diff --git a/src/builtin_structures/sets/bit_operations/set_bit.py b/src/neat_builtin_examples/sets/bit_operations/set_bit.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/set_bit.py rename to src/neat_builtin_examples/sets/bit_operations/set_bit.py diff --git a/src/builtin_structures/sets/bit_operations/swap_odd_even.py b/src/neat_builtin_examples/sets/bit_operations/swap_odd_even.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/swap_odd_even.py rename to src/neat_builtin_examples/sets/bit_operations/swap_odd_even.py diff --git a/src/builtin_structures/sets/bit_operations/update_bit.py b/src/neat_builtin_examples/sets/bit_operations/update_bit.py similarity index 100% rename from src/builtin_structures/sets/bit_operations/update_bit.py rename to src/neat_builtin_examples/sets/bit_operations/update_bit.py diff --git a/src/builtin_structures/sets/removing_duplicates_seq_.py b/src/neat_builtin_examples/sets/removing_duplicates_seq_.py similarity index 100% rename from src/builtin_structures/sets/removing_duplicates_seq_.py rename to src/neat_builtin_examples/sets/removing_duplicates_seq_.py diff --git a/src/builtin_structures/sets/set_operations_dict.py b/src/neat_builtin_examples/sets/set_operations_dict.py similarity index 100% rename from src/builtin_structures/sets/set_operations_dict.py rename to src/neat_builtin_examples/sets/set_operations_dict.py diff --git a/src/builtin_structures/sets/set_operations_with_dict.py b/src/neat_builtin_examples/sets/set_operations_with_dict.py similarity index 100% rename from src/builtin_structures/sets/set_operations_with_dict.py rename to src/neat_builtin_examples/sets/set_operations_with_dict.py diff --git a/src/builtin_structures/sets/set_operations_with_lists.py b/src/neat_builtin_examples/sets/set_operations_with_lists.py similarity index 100% rename from src/builtin_structures/sets/set_operations_with_lists.py rename to src/neat_builtin_examples/sets/set_operations_with_lists.py diff --git a/src/builtin_structures/tuples/namedtuple_example.py b/src/neat_builtin_examples/tuples/namedtuple_example.py similarity index 100% rename from src/builtin_structures/tuples/namedtuple_example.py rename to src/neat_builtin_examples/tuples/namedtuple_example.py