diff --git a/README.md b/README.md index 5aa6411..0cc0427 100644 --- a/README.md +++ b/README.md @@ -4,24 +4,38 @@ Python and Algorithms & Data Structures This repository contains a comprehensive study of Algorithms & Data Structures in Python, including an ["e-book" I wrote](http://mariwahl.us/docs/algorithms_in_python.pdf). ![](http://i.imgur.com/fYPlwpQ.png) -![](http://i.imgur.com/eQHu0Og.png) -![](http://i.imgur.com/sZfhApe.png) -![](http://i.imgur.com/3Jmzd6w.png) -/src/examples_in_my_book -------------------------- - -All the examples and lessons I show in my ebook. - - -/src/futher_examples/ +Source Code Structure --------------------- -More advanced examples that are not mentioned in my book: - -* Solutions for the book Cracking the Code, -* Solution for Project Euler and Topcoder. +src/ +├── abstract_structures +│   ├── adt +│   │   ├── heap +│   │   ├── linked_lists +│   │   ├── queues +│   │   └── stacks +├── builtin_structures +│   ├── arrays_and_strings +│   ├── dicts +│   ├── lists +│   ├── numbers +│   ├── sets +│   ├── strings +│   └── tuples +├── graphs_and_trees +│   ├── trees +│   │   ├── binary_trees +│   │   ├── simple_trees +│   │   └── traversals +├── programming_paradigms +│   ├── dynamic_programming +│   ├── modules +│   └── oop +└── searching_and_sorting + ├── searching + ├── sorting diff --git a/src/examples_book/adt/heap/__init__.py b/src/abstract_structures/adt/heap/__init__.py similarity index 100% rename from src/examples_book/adt/heap/__init__.py rename to src/abstract_structures/adt/heap/__init__.py diff --git a/src/examples_book/adt/heap/find_N_largest_smallest_items_seq.py b/src/abstract_structures/adt/heap/find_N_largest_smallest_items_seq.py similarity index 100% rename from src/examples_book/adt/heap/find_N_largest_smallest_items_seq.py rename to src/abstract_structures/adt/heap/find_N_largest_smallest_items_seq.py diff --git a/src/examples_book/adt/heap/heapify.py b/src/abstract_structures/adt/heap/heapify.py similarity index 100% rename from src/examples_book/adt/heap/heapify.py rename to src/abstract_structures/adt/heap/heapify.py diff --git a/src/examples_book/adt/heap/merge_sorted_seqs.py b/src/abstract_structures/adt/heap/merge_sorted_seqs.py similarity index 100% rename from src/examples_book/adt/heap/merge_sorted_seqs.py rename to src/abstract_structures/adt/heap/merge_sorted_seqs.py diff --git a/src/examples_book/adt/heap/priority_queue.py b/src/abstract_structures/adt/heap/priority_queue.py similarity index 100% rename from src/examples_book/adt/heap/priority_queue.py rename to src/abstract_structures/adt/heap/priority_queue.py diff --git a/src/examples_book/adt/linked_lists/__init__.py b/src/abstract_structures/adt/linked_lists/__init__.py similarity index 100% rename from src/examples_book/adt/linked_lists/__init__.py rename to src/abstract_structures/adt/linked_lists/__init__.py diff --git a/src/examples_book/adt/linked_lists/linked_list_from_stack.py b/src/abstract_structures/adt/linked_lists/linked_list_from_stack.py similarity index 100% rename from src/examples_book/adt/linked_lists/linked_list_from_stack.py rename to src/abstract_structures/adt/linked_lists/linked_list_from_stack.py diff --git a/src/examples_book/adt/linked_lists/linkedlist.py b/src/abstract_structures/adt/linked_lists/linkedlist.py similarity index 100% rename from src/examples_book/adt/linked_lists/linkedlist.py rename to src/abstract_structures/adt/linked_lists/linkedlist.py diff --git a/src/examples_book/adt/linked_lists/node.py b/src/abstract_structures/adt/linked_lists/node.py similarity index 100% rename from src/examples_book/adt/linked_lists/node.py rename to src/abstract_structures/adt/linked_lists/node.py diff --git a/src/examples_book/adt/linked_lists/ordered_list.py b/src/abstract_structures/adt/linked_lists/ordered_list.py similarity index 100% rename from src/examples_book/adt/linked_lists/ordered_list.py rename to src/abstract_structures/adt/linked_lists/ordered_list.py diff --git a/src/examples_book/adt/queues/__init__.py b/src/abstract_structures/adt/queues/__init__.py similarity index 100% rename from src/examples_book/adt/queues/__init__.py rename to src/abstract_structures/adt/queues/__init__.py diff --git a/src/examples_book/adt/queues/deque.py b/src/abstract_structures/adt/queues/deque.py similarity index 100% rename from src/examples_book/adt/queues/deque.py rename to src/abstract_structures/adt/queues/deque.py diff --git a/src/examples_book/adt/queues/linked_queue.py b/src/abstract_structures/adt/queues/linked_queue.py similarity index 100% rename from src/examples_book/adt/queues/linked_queue.py rename to src/abstract_structures/adt/queues/linked_queue.py diff --git a/src/examples_book/adt/queues/palindrome_checker_with_deque.py b/src/abstract_structures/adt/queues/palindrome_checker_with_deque.py similarity index 100% rename from src/examples_book/adt/queues/palindrome_checker_with_deque.py rename to src/abstract_structures/adt/queues/palindrome_checker_with_deque.py diff --git a/src/examples_book/adt/queues/queue.py b/src/abstract_structures/adt/queues/queue.py similarity index 100% rename from src/examples_book/adt/queues/queue.py rename to src/abstract_structures/adt/queues/queue.py diff --git a/src/examples_book/adt/queues/queue_from_two_stacks.py b/src/abstract_structures/adt/queues/queue_from_two_stacks.py similarity index 100% rename from src/examples_book/adt/queues/queue_from_two_stacks.py rename to src/abstract_structures/adt/queues/queue_from_two_stacks.py diff --git a/src/examples_book/adt/queues/rotating_array.py b/src/abstract_structures/adt/queues/rotating_array.py similarity index 100% rename from src/examples_book/adt/queues/rotating_array.py rename to src/abstract_structures/adt/queues/rotating_array.py diff --git a/src/examples_book/adt/stacks/__init__.py b/src/abstract_structures/adt/stacks/__init__.py similarity index 100% rename from src/examples_book/adt/stacks/__init__.py rename to src/abstract_structures/adt/stacks/__init__.py diff --git a/src/examples_book/adt/stacks/banlance_parenthesis_str_stack.py b/src/abstract_structures/adt/stacks/banlance_parenthesis_str_stack.py similarity index 100% rename from src/examples_book/adt/stacks/banlance_parenthesis_str_stack.py rename to src/abstract_structures/adt/stacks/banlance_parenthesis_str_stack.py diff --git a/src/examples_book/adt/stacks/dec2bin_with_stack.py b/src/abstract_structures/adt/stacks/dec2bin_with_stack.py similarity index 100% rename from src/examples_book/adt/stacks/dec2bin_with_stack.py rename to src/abstract_structures/adt/stacks/dec2bin_with_stack.py diff --git a/src/examples_book/adt/stacks/linked_stack.py b/src/abstract_structures/adt/stacks/linked_stack.py similarity index 100% rename from src/examples_book/adt/stacks/linked_stack.py rename to src/abstract_structures/adt/stacks/linked_stack.py diff --git a/src/examples_book/adt/stacks/reverse_string_with_stack.py b/src/abstract_structures/adt/stacks/reverse_string_with_stack.py similarity index 100% rename from src/examples_book/adt/stacks/reverse_string_with_stack.py rename to src/abstract_structures/adt/stacks/reverse_string_with_stack.py diff --git a/src/examples_book/adt/stacks/set_of_stacks.py b/src/abstract_structures/adt/stacks/set_of_stacks.py similarity index 100% rename from src/examples_book/adt/stacks/set_of_stacks.py rename to src/abstract_structures/adt/stacks/set_of_stacks.py diff --git a/src/examples_book/adt/stacks/stack.py b/src/abstract_structures/adt/stacks/stack.py similarity index 100% rename from src/examples_book/adt/stacks/stack.py rename to src/abstract_structures/adt/stacks/stack.py diff --git a/src/examples_book/adt/stacks/stack_with_min.py b/src/abstract_structures/adt/stacks/stack_with_min.py similarity index 100% rename from src/examples_book/adt/stacks/stack_with_min.py rename to src/abstract_structures/adt/stacks/stack_with_min.py diff --git a/src/further_examples/linked_list/check_pal.py b/src/abstract_structures/linked_list/check_pal.py similarity index 100% rename from src/further_examples/linked_list/check_pal.py rename to src/abstract_structures/linked_list/check_pal.py diff --git a/src/further_examples/linked_list/circ_ll.py b/src/abstract_structures/linked_list/circ_ll.py similarity index 100% rename from src/further_examples/linked_list/circ_ll.py rename to src/abstract_structures/linked_list/circ_ll.py diff --git a/src/further_examples/linked_list/double_linked_list_fifo.py b/src/abstract_structures/linked_list/double_linked_list_fifo.py similarity index 100% rename from src/further_examples/linked_list/double_linked_list_fifo.py rename to src/abstract_structures/linked_list/double_linked_list_fifo.py diff --git a/src/further_examples/linked_list/find_kth.py b/src/abstract_structures/linked_list/find_kth.py similarity index 100% rename from src/further_examples/linked_list/find_kth.py rename to src/abstract_structures/linked_list/find_kth.py diff --git a/src/further_examples/linked_list/hash_table.py b/src/abstract_structures/linked_list/hash_table.py similarity index 100% rename from src/further_examples/linked_list/hash_table.py rename to src/abstract_structures/linked_list/hash_table.py diff --git a/src/further_examples/linked_list/linked_list_fifo.py b/src/abstract_structures/linked_list/linked_list_fifo.py similarity index 100% rename from src/further_examples/linked_list/linked_list_fifo.py rename to src/abstract_structures/linked_list/linked_list_fifo.py diff --git a/src/further_examples/linked_list/linked_list_lifo.py b/src/abstract_structures/linked_list/linked_list_lifo.py similarity index 100% rename from src/further_examples/linked_list/linked_list_lifo.py rename to src/abstract_structures/linked_list/linked_list_lifo.py diff --git a/src/further_examples/linked_list/part_ll.py b/src/abstract_structures/linked_list/part_ll.py similarity index 100% rename from src/further_examples/linked_list/part_ll.py rename to src/abstract_structures/linked_list/part_ll.py diff --git a/src/further_examples/linked_list/sum_ll.py b/src/abstract_structures/linked_list/sum_ll.py similarity index 100% rename from src/further_examples/linked_list/sum_ll.py rename to src/abstract_structures/linked_list/sum_ll.py diff --git a/src/further_examples/queues_stacks/animal_shelter.py b/src/abstract_structures/queues_stacks/animal_shelter.py similarity index 100% rename from src/further_examples/queues_stacks/animal_shelter.py rename to src/abstract_structures/queues_stacks/animal_shelter.py diff --git a/src/further_examples/queues_stacks/queue_2_stacks.py b/src/abstract_structures/queues_stacks/queue_2_stacks.py similarity index 100% rename from src/further_examples/queues_stacks/queue_2_stacks.py rename to src/abstract_structures/queues_stacks/queue_2_stacks.py diff --git a/src/further_examples/queues_stacks/setofStacks.py b/src/abstract_structures/queues_stacks/setofStacks.py similarity index 100% rename from src/further_examples/queues_stacks/setofStacks.py rename to src/abstract_structures/queues_stacks/setofStacks.py diff --git a/src/further_examples/queues_stacks/setofStacksList.py b/src/abstract_structures/queues_stacks/setofStacksList.py similarity index 100% rename from src/further_examples/queues_stacks/setofStacksList.py rename to src/abstract_structures/queues_stacks/setofStacksList.py diff --git a/src/further_examples/queues_stacks/sort_stack.py b/src/abstract_structures/queues_stacks/sort_stack.py similarity index 100% rename from src/further_examples/queues_stacks/sort_stack.py rename to src/abstract_structures/queues_stacks/sort_stack.py diff --git a/src/further_examples/queues_stacks/stackMinElemO1.py b/src/abstract_structures/queues_stacks/stackMinElemO1.py similarity index 100% rename from src/further_examples/queues_stacks/stackMinElemO1.py rename to src/abstract_structures/queues_stacks/stackMinElemO1.py diff --git a/src/further_examples/queues_stacks/stack_.py b/src/abstract_structures/queues_stacks/stack_.py similarity index 100% rename from src/further_examples/queues_stacks/stack_.py rename to src/abstract_structures/queues_stacks/stack_.py diff --git a/src/further_examples/queues_stacks/towers_of_hanoi.py b/src/abstract_structures/queues_stacks/towers_of_hanoi.py similarity index 100% rename from src/further_examples/queues_stacks/towers_of_hanoi.py rename to src/abstract_structures/queues_stacks/towers_of_hanoi.py diff --git a/src/further_examples/arrays_and_strings/comb_str.py b/src/builtin_structures/arrays_and_strings/comb_str.py similarity index 100% rename from src/further_examples/arrays_and_strings/comb_str.py rename to src/builtin_structures/arrays_and_strings/comb_str.py diff --git a/src/further_examples/arrays_and_strings/conv_str2int.py b/src/builtin_structures/arrays_and_strings/conv_str2int.py similarity index 100% rename from src/further_examples/arrays_and_strings/conv_str2int.py rename to src/builtin_structures/arrays_and_strings/conv_str2int.py diff --git a/src/further_examples/arrays_and_strings/find_0_MxN_replace_cols_rows.py b/src/builtin_structures/arrays_and_strings/find_0_MxN_replace_cols_rows.py similarity index 100% rename from src/further_examples/arrays_and_strings/find_0_MxN_replace_cols_rows.py rename to src/builtin_structures/arrays_and_strings/find_0_MxN_replace_cols_rows.py diff --git a/src/further_examples/arrays_and_strings/find_first_non_repetead_char.py b/src/builtin_structures/arrays_and_strings/find_first_non_repetead_char.py similarity index 100% rename from src/further_examples/arrays_and_strings/find_first_non_repetead_char.py rename to src/builtin_structures/arrays_and_strings/find_first_non_repetead_char.py diff --git a/src/further_examples/arrays_and_strings/find_if_is_substr.py b/src/builtin_structures/arrays_and_strings/find_if_is_substr.py similarity index 100% rename from src/further_examples/arrays_and_strings/find_if_is_substr.py rename to src/builtin_structures/arrays_and_strings/find_if_is_substr.py diff --git a/src/further_examples/arrays_and_strings/find_if_only_unique_chars.py b/src/builtin_structures/arrays_and_strings/find_if_only_unique_chars.py similarity index 100% rename from src/further_examples/arrays_and_strings/find_if_only_unique_chars.py rename to src/builtin_structures/arrays_and_strings/find_if_only_unique_chars.py diff --git a/src/further_examples/arrays_and_strings/perm_str.py b/src/builtin_structures/arrays_and_strings/perm_str.py similarity index 100% rename from src/further_examples/arrays_and_strings/perm_str.py rename to src/builtin_structures/arrays_and_strings/perm_str.py diff --git a/src/further_examples/arrays_and_strings/remove_specified_char_from_str.py b/src/builtin_structures/arrays_and_strings/remove_specified_char_from_str.py similarity index 100% rename from src/further_examples/arrays_and_strings/remove_specified_char_from_str.py rename to src/builtin_structures/arrays_and_strings/remove_specified_char_from_str.py diff --git a/src/further_examples/arrays_and_strings/reverse_str.py b/src/builtin_structures/arrays_and_strings/reverse_str.py similarity index 100% rename from src/further_examples/arrays_and_strings/reverse_str.py rename to src/builtin_structures/arrays_and_strings/reverse_str.py diff --git a/src/further_examples/arrays_and_strings/reverse_words.py b/src/builtin_structures/arrays_and_strings/reverse_words.py similarity index 100% rename from src/further_examples/arrays_and_strings/reverse_words.py rename to src/builtin_structures/arrays_and_strings/reverse_words.py diff --git a/src/further_examples/arrays_and_strings/rotate_NxN.py b/src/builtin_structures/arrays_and_strings/rotate_NxN.py similarity index 100% rename from src/further_examples/arrays_and_strings/rotate_NxN.py rename to src/builtin_structures/arrays_and_strings/rotate_NxN.py diff --git a/src/further_examples/arrays_and_strings/simple_str_comprension.py b/src/builtin_structures/arrays_and_strings/simple_str_comprension.py similarity index 100% rename from src/further_examples/arrays_and_strings/simple_str_comprension.py rename to src/builtin_structures/arrays_and_strings/simple_str_comprension.py diff --git a/src/further_examples/arrays_and_strings/verify_if_perm.py b/src/builtin_structures/arrays_and_strings/verify_if_perm.py similarity index 100% rename from src/further_examples/arrays_and_strings/verify_if_perm.py rename to src/builtin_structures/arrays_and_strings/verify_if_perm.py diff --git a/src/examples_book/general_problems/dicts/Counter_example.py b/src/builtin_structures/dicts/Counter_example.py similarity index 100% rename from src/examples_book/general_problems/dicts/Counter_example.py rename to src/builtin_structures/dicts/Counter_example.py diff --git a/src/examples_book/general_problems/dicts/OrderedDict_example.py b/src/builtin_structures/dicts/OrderedDict_example.py similarity index 100% rename from src/examples_book/general_problems/dicts/OrderedDict_example.py rename to src/builtin_structures/dicts/OrderedDict_example.py diff --git a/src/examples_book/dynamic_programming/__init__.py b/src/builtin_structures/dicts/__init__.py similarity index 100% rename from src/examples_book/dynamic_programming/__init__.py rename to src/builtin_structures/dicts/__init__.py diff --git a/src/examples_book/general_problems/dicts/count_unique_words_.py b/src/builtin_structures/dicts/count_unique_words_.py similarity index 100% rename from src/examples_book/general_problems/dicts/count_unique_words_.py rename to src/builtin_structures/dicts/count_unique_words_.py diff --git a/src/examples_book/general_problems/dicts/defaultdict_example.py b/src/builtin_structures/dicts/defaultdict_example.py similarity index 100% rename from src/examples_book/general_problems/dicts/defaultdict_example.py rename to src/builtin_structures/dicts/defaultdict_example.py diff --git a/src/examples_book/general_problems/dicts/delete_duplicate_char_str.py b/src/builtin_structures/dicts/delete_duplicate_char_str.py similarity index 100% rename from src/examples_book/general_problems/dicts/delete_duplicate_char_str.py rename to src/builtin_structures/dicts/delete_duplicate_char_str.py diff --git a/src/examples_book/general_problems/dicts/find_anagram_hash_function.py b/src/builtin_structures/dicts/find_anagram_hash_function.py similarity index 100% rename from src/examples_book/general_problems/dicts/find_anagram_hash_function.py rename to src/builtin_structures/dicts/find_anagram_hash_function.py diff --git a/src/examples_book/general_problems/dicts/find_dice_probabilities.py b/src/builtin_structures/dicts/find_dice_probabilities.py similarity index 100% rename from src/examples_book/general_problems/dicts/find_dice_probabilities.py rename to src/builtin_structures/dicts/find_dice_probabilities.py diff --git a/src/examples_book/general_problems/dicts/find_top_N_recurring_words.py b/src/builtin_structures/dicts/find_top_N_recurring_words.py similarity index 100% rename from src/examples_book/general_problems/dicts/find_top_N_recurring_words.py rename to src/builtin_structures/dicts/find_top_N_recurring_words.py diff --git a/src/examples_book/general_problems/dicts/runtime_dicts_with_timeit_module.py b/src/builtin_structures/dicts/runtime_dicts_with_timeit_module.py similarity index 100% rename from src/examples_book/general_problems/dicts/runtime_dicts_with_timeit_module.py rename to src/builtin_structures/dicts/runtime_dicts_with_timeit_module.py diff --git a/src/examples_book/general_problems/dicts/setdeault_example.py b/src/builtin_structures/dicts/setdeault_example.py similarity index 100% rename from src/examples_book/general_problems/dicts/setdeault_example.py rename to src/builtin_structures/dicts/setdeault_example.py diff --git a/src/examples_book/general_problems/dicts/veirfy_two_strings_are_anagrams.py b/src/builtin_structures/dicts/veirfy_two_strings_are_anagrams.py similarity index 100% rename from src/examples_book/general_problems/dicts/veirfy_two_strings_are_anagrams.py rename to src/builtin_structures/dicts/veirfy_two_strings_are_anagrams.py diff --git a/src/examples_book/general_problems/dicts/__init__.py b/src/builtin_structures/lists/__init__.py similarity index 100% rename from src/examples_book/general_problems/dicts/__init__.py rename to src/builtin_structures/lists/__init__.py diff --git a/src/examples_book/general_problems/lists/find_closest_num_seq.py b/src/builtin_structures/lists/find_closest_num_seq.py similarity index 100% rename from src/examples_book/general_problems/lists/find_closest_num_seq.py rename to src/builtin_structures/lists/find_closest_num_seq.py diff --git a/src/examples_book/general_problems/lists/find_duplicate_num_array.py b/src/builtin_structures/lists/find_duplicate_num_array.py similarity index 100% rename from src/examples_book/general_problems/lists/find_duplicate_num_array.py rename to src/builtin_structures/lists/find_duplicate_num_array.py diff --git a/src/examples_book/general_problems/lists/find_long_con_inc_subseq.py b/src/builtin_structures/lists/find_long_con_inc_subseq.py similarity index 100% rename from src/examples_book/general_problems/lists/find_long_con_inc_subseq.py rename to src/builtin_structures/lists/find_long_con_inc_subseq.py diff --git a/src/examples_book/general_problems/lists/find_majority_in_seq.py b/src/builtin_structures/lists/find_majority_in_seq.py similarity index 100% rename from src/examples_book/general_problems/lists/find_majority_in_seq.py rename to src/builtin_structures/lists/find_majority_in_seq.py diff --git a/src/examples_book/general_problems/lists/find_max_profit.py b/src/builtin_structures/lists/find_max_profit.py similarity index 100% rename from src/examples_book/general_problems/lists/find_max_profit.py rename to src/builtin_structures/lists/find_max_profit.py diff --git a/src/examples_book/general_problems/lists/find_max_subarray.py b/src/builtin_structures/lists/find_max_subarray.py similarity index 100% rename from src/examples_book/general_problems/lists/find_max_subarray.py rename to src/builtin_structures/lists/find_max_subarray.py diff --git a/src/examples_book/general_problems/lists/find_product_without_division.py b/src/builtin_structures/lists/find_product_without_division.py similarity index 100% rename from src/examples_book/general_problems/lists/find_product_without_division.py rename to src/builtin_structures/lists/find_product_without_division.py diff --git a/src/examples_book/general_problems/lists/find_two_missing_numbers_in_sequence.py b/src/builtin_structures/lists/find_two_missing_numbers_in_sequence.py similarity index 100% rename from src/examples_book/general_problems/lists/find_two_missing_numbers_in_sequence.py rename to src/builtin_structures/lists/find_two_missing_numbers_in_sequence.py diff --git a/src/examples_book/general_problems/lists/greatest_sum_sub_array.py b/src/builtin_structures/lists/greatest_sum_sub_array.py similarity index 100% rename from src/examples_book/general_problems/lists/greatest_sum_sub_array.py rename to src/builtin_structures/lists/greatest_sum_sub_array.py diff --git a/src/examples_book/general_problems/lists/merge_two_sorted_arrays.py b/src/builtin_structures/lists/merge_two_sorted_arrays.py similarity index 100% rename from src/examples_book/general_problems/lists/merge_two_sorted_arrays.py rename to src/builtin_structures/lists/merge_two_sorted_arrays.py diff --git a/src/examples_book/general_problems/lists/print_all_seq_with_cont_num.py b/src/builtin_structures/lists/print_all_seq_with_cont_num.py similarity index 100% rename from src/examples_book/general_problems/lists/print_all_seq_with_cont_num.py rename to src/builtin_structures/lists/print_all_seq_with_cont_num.py diff --git a/src/examples_book/general_problems/lists/removing_duplicates_seq.py b/src/builtin_structures/lists/removing_duplicates_seq.py similarity index 100% rename from src/examples_book/general_problems/lists/removing_duplicates_seq.py rename to src/builtin_structures/lists/removing_duplicates_seq.py diff --git a/src/examples_book/general_problems/lists/runtime_lists_with_timeit_module.py b/src/builtin_structures/lists/runtime_lists_with_timeit_module.py similarity index 100% rename from src/examples_book/general_problems/lists/runtime_lists_with_timeit_module.py rename to src/builtin_structures/lists/runtime_lists_with_timeit_module.py diff --git a/src/examples_book/general_problems/lists/sum_two_numbers_sequence.py b/src/builtin_structures/lists/sum_two_numbers_sequence.py similarity index 100% rename from src/examples_book/general_problems/lists/sum_two_numbers_sequence.py rename to src/builtin_structures/lists/sum_two_numbers_sequence.py diff --git a/src/examples_book/general_problems/lists/__init__.py b/src/builtin_structures/numbers/__init__.py similarity index 100% rename from src/examples_book/general_problems/lists/__init__.py rename to src/builtin_structures/numbers/__init__.py diff --git a/src/examples_book/general_problems/numbers/convert_dec_to_any_base_rec.py b/src/builtin_structures/numbers/convert_dec_to_any_base_rec.py similarity index 100% rename from src/examples_book/general_problems/numbers/convert_dec_to_any_base_rec.py rename to src/builtin_structures/numbers/convert_dec_to_any_base_rec.py diff --git a/src/examples_book/general_problems/numbers/convert_from_decimal.py b/src/builtin_structures/numbers/convert_from_decimal.py similarity index 100% rename from src/examples_book/general_problems/numbers/convert_from_decimal.py rename to src/builtin_structures/numbers/convert_from_decimal.py diff --git a/src/examples_book/general_problems/numbers/convert_from_decimal_larger_bases.py b/src/builtin_structures/numbers/convert_from_decimal_larger_bases.py similarity index 100% rename from src/examples_book/general_problems/numbers/convert_from_decimal_larger_bases.py rename to src/builtin_structures/numbers/convert_from_decimal_larger_bases.py diff --git a/src/examples_book/general_problems/numbers/convert_to_decimal.py b/src/builtin_structures/numbers/convert_to_decimal.py similarity index 100% rename from src/examples_book/general_problems/numbers/convert_to_decimal.py rename to src/builtin_structures/numbers/convert_to_decimal.py diff --git a/src/examples_book/general_problems/numbers/find_fibonacci_seq.py b/src/builtin_structures/numbers/find_fibonacci_seq.py similarity index 100% rename from src/examples_book/general_problems/numbers/find_fibonacci_seq.py rename to src/builtin_structures/numbers/find_fibonacci_seq.py diff --git a/src/examples_book/general_problems/numbers/finding_gcd.py b/src/builtin_structures/numbers/finding_gcd.py similarity index 100% rename from src/examples_book/general_problems/numbers/finding_gcd.py rename to src/builtin_structures/numbers/finding_gcd.py diff --git a/src/examples_book/general_problems/numbers/finding_if_prime.py b/src/builtin_structures/numbers/finding_if_prime.py similarity index 100% rename from src/examples_book/general_problems/numbers/finding_if_prime.py rename to src/builtin_structures/numbers/finding_if_prime.py diff --git a/src/examples_book/general_problems/numbers/generate_prime.py b/src/builtin_structures/numbers/generate_prime.py similarity index 100% rename from src/examples_book/general_problems/numbers/generate_prime.py rename to src/builtin_structures/numbers/generate_prime.py diff --git a/src/examples_book/general_problems/numbers/search_entry_matrix.py b/src/builtin_structures/numbers/search_entry_matrix.py similarity index 100% rename from src/examples_book/general_problems/numbers/search_entry_matrix.py rename to src/builtin_structures/numbers/search_entry_matrix.py diff --git a/src/examples_book/general_problems/numbers/testing_floats.py b/src/builtin_structures/numbers/testing_floats.py similarity index 100% rename from src/examples_book/general_problems/numbers/testing_floats.py rename to src/builtin_structures/numbers/testing_floats.py diff --git a/src/examples_book/general_problems/numbers/testing_numpy.py b/src/builtin_structures/numbers/testing_numpy.py similarity index 100% rename from src/examples_book/general_problems/numbers/testing_numpy.py rename to src/builtin_structures/numbers/testing_numpy.py diff --git a/src/examples_book/general_problems/numbers/testing_numpy_speed.py b/src/builtin_structures/numbers/testing_numpy_speed.py similarity index 100% rename from src/examples_book/general_problems/numbers/testing_numpy_speed.py rename to src/builtin_structures/numbers/testing_numpy_speed.py diff --git a/src/examples_book/general_problems/numbers/testing_random.py b/src/builtin_structures/numbers/testing_random.py similarity index 100% rename from src/examples_book/general_problems/numbers/testing_random.py rename to src/builtin_structures/numbers/testing_random.py diff --git a/src/examples_book/general_problems/modules/__init__.py b/src/builtin_structures/sets/__init__.py similarity index 100% rename from src/examples_book/general_problems/modules/__init__.py rename to src/builtin_structures/sets/__init__.py diff --git a/src/further_examples/bit_operations/bit_array.py b/src/builtin_structures/sets/bit_operations/bit_array.py similarity index 100% rename from src/further_examples/bit_operations/bit_array.py rename to src/builtin_structures/sets/bit_operations/bit_array.py diff --git a/src/further_examples/bit_operations/clear_bits.py b/src/builtin_structures/sets/bit_operations/clear_bits.py similarity index 100% rename from src/further_examples/bit_operations/clear_bits.py rename to src/builtin_structures/sets/bit_operations/clear_bits.py diff --git a/src/further_examples/bit_operations/find_bit_len.py b/src/builtin_structures/sets/bit_operations/find_bit_len.py similarity index 100% rename from src/further_examples/bit_operations/find_bit_len.py rename to src/builtin_structures/sets/bit_operations/find_bit_len.py diff --git a/src/further_examples/bit_operations/find_how_many_1_binary.py b/src/builtin_structures/sets/bit_operations/find_how_many_1_binary.py similarity index 100% rename from src/further_examples/bit_operations/find_how_many_1_binary.py rename to src/builtin_structures/sets/bit_operations/find_how_many_1_binary.py diff --git a/src/further_examples/bit_operations/get_bit.py b/src/builtin_structures/sets/bit_operations/get_bit.py similarity index 100% rename from src/further_examples/bit_operations/get_bit.py rename to src/builtin_structures/sets/bit_operations/get_bit.py diff --git a/src/further_examples/bit_operations/get_float_rep_bin.py b/src/builtin_structures/sets/bit_operations/get_float_rep_bin.py similarity index 100% rename from src/further_examples/bit_operations/get_float_rep_bin.py rename to src/builtin_structures/sets/bit_operations/get_float_rep_bin.py diff --git a/src/further_examples/bit_operations/insert_small_bin_into_big_bin.py b/src/builtin_structures/sets/bit_operations/insert_small_bin_into_big_bin.py similarity index 100% rename from src/further_examples/bit_operations/insert_small_bin_into_big_bin.py rename to src/builtin_structures/sets/bit_operations/insert_small_bin_into_big_bin.py diff --git a/src/further_examples/bit_operations/next_with_same_num_1s.py b/src/builtin_structures/sets/bit_operations/next_with_same_num_1s.py similarity index 100% rename from src/further_examples/bit_operations/next_with_same_num_1s.py rename to src/builtin_structures/sets/bit_operations/next_with_same_num_1s.py diff --git a/src/further_examples/bit_operations/num_bits_to_convert_2_nums.py b/src/builtin_structures/sets/bit_operations/num_bits_to_convert_2_nums.py similarity index 100% rename from src/further_examples/bit_operations/num_bits_to_convert_2_nums.py rename to src/builtin_structures/sets/bit_operations/num_bits_to_convert_2_nums.py diff --git a/src/further_examples/bit_operations/set_bit.py b/src/builtin_structures/sets/bit_operations/set_bit.py similarity index 100% rename from src/further_examples/bit_operations/set_bit.py rename to src/builtin_structures/sets/bit_operations/set_bit.py diff --git a/src/further_examples/bit_operations/swap_odd_even.py b/src/builtin_structures/sets/bit_operations/swap_odd_even.py similarity index 100% rename from src/further_examples/bit_operations/swap_odd_even.py rename to src/builtin_structures/sets/bit_operations/swap_odd_even.py diff --git a/src/further_examples/bit_operations/update_bit.py b/src/builtin_structures/sets/bit_operations/update_bit.py similarity index 100% rename from src/further_examples/bit_operations/update_bit.py rename to src/builtin_structures/sets/bit_operations/update_bit.py diff --git a/src/examples_book/general_problems/sets/removing_duplicates_seq_.py b/src/builtin_structures/sets/removing_duplicates_seq_.py similarity index 100% rename from src/examples_book/general_problems/sets/removing_duplicates_seq_.py rename to src/builtin_structures/sets/removing_duplicates_seq_.py diff --git a/src/examples_book/general_problems/sets/set_operations_dict.py b/src/builtin_structures/sets/set_operations_dict.py similarity index 100% rename from src/examples_book/general_problems/sets/set_operations_dict.py rename to src/builtin_structures/sets/set_operations_dict.py diff --git a/src/examples_book/general_problems/sets/set_operations_with_dict.py b/src/builtin_structures/sets/set_operations_with_dict.py similarity index 100% rename from src/examples_book/general_problems/sets/set_operations_with_dict.py rename to src/builtin_structures/sets/set_operations_with_dict.py diff --git a/src/examples_book/general_problems/sets/set_operations_with_lists.py b/src/builtin_structures/sets/set_operations_with_lists.py similarity index 100% rename from src/examples_book/general_problems/sets/set_operations_with_lists.py rename to src/builtin_structures/sets/set_operations_with_lists.py diff --git a/src/examples_book/general_problems/numbers/__init__.py b/src/builtin_structures/strings/__init__.py similarity index 100% rename from src/examples_book/general_problems/numbers/__init__.py rename to src/builtin_structures/strings/__init__.py diff --git a/src/examples_book/general_problems/strings/count_unique_words.py b/src/builtin_structures/strings/count_unique_words.py similarity index 100% rename from src/examples_book/general_problems/strings/count_unique_words.py rename to src/builtin_structures/strings/count_unique_words.py diff --git a/src/examples_book/general_problems/strings/find_all_permutations_string.py b/src/builtin_structures/strings/find_all_permutations_string.py similarity index 100% rename from src/examples_book/general_problems/strings/find_all_permutations_string.py rename to src/builtin_structures/strings/find_all_permutations_string.py diff --git a/src/examples_book/general_problems/strings/find_edit_distance.py b/src/builtin_structures/strings/find_edit_distance.py similarity index 100% rename from src/examples_book/general_problems/strings/find_edit_distance.py rename to src/builtin_structures/strings/find_edit_distance.py diff --git a/src/examples_book/general_problems/strings/find_palindrome_rec.py b/src/builtin_structures/strings/find_palindrome_rec.py similarity index 100% rename from src/examples_book/general_problems/strings/find_palindrome_rec.py rename to src/builtin_structures/strings/find_palindrome_rec.py diff --git a/src/examples_book/general_problems/strings/find_subst_in_str.py b/src/builtin_structures/strings/find_subst_in_str.py similarity index 100% rename from src/examples_book/general_problems/strings/find_subst_in_str.py rename to src/builtin_structures/strings/find_subst_in_str.py diff --git a/src/examples_book/general_problems/strings/longest_common_substring.py b/src/builtin_structures/strings/longest_common_substring.py similarity index 100% rename from src/examples_book/general_problems/strings/longest_common_substring.py rename to src/builtin_structures/strings/longest_common_substring.py diff --git a/src/examples_book/general_problems/strings/reverse_string_inplace_rec.py b/src/builtin_structures/strings/reverse_string_inplace_rec.py similarity index 100% rename from src/examples_book/general_problems/strings/reverse_string_inplace_rec.py rename to src/builtin_structures/strings/reverse_string_inplace_rec.py diff --git a/src/examples_book/general_problems/strings/reversing_words_setence.py b/src/builtin_structures/strings/reversing_words_setence.py similarity index 100% rename from src/examples_book/general_problems/strings/reversing_words_setence.py rename to src/builtin_structures/strings/reversing_words_setence.py diff --git a/src/examples_book/general_problems/tuples/namedtuple_example.py b/src/builtin_structures/tuples/namedtuple_example.py similarity index 100% rename from src/examples_book/general_problems/tuples/namedtuple_example.py rename to src/builtin_structures/tuples/namedtuple_example.py diff --git a/src/further_examples/useful/version_info.py b/src/further_examples/useful/version_info.py deleted file mode 100644 index 504a204..0000000 --- a/src/further_examples/useful/version_info.py +++ /dev/null @@ -1,20 +0,0 @@ -import sys -print("System version:", sys.version, '\n') - -try: - import numpy - print("\nNumpy version:", numpy.__version__) -except ImportError as e: - print(e) - -try: - import matplotlib - print("\nMatplotlib version:", matplotlib.__version__) -except ImportError as e: - print(e) - -try: - import pandas - print("\nPandas version:", pandas.__version__) -except ImportError as e: - print(e) diff --git a/src/examples_book/general_problems/oop/__init__.py b/src/graphs_and_trees/trees/__init__.py similarity index 100% rename from src/examples_book/general_problems/oop/__init__.py rename to src/graphs_and_trees/trees/__init__.py diff --git a/src/examples_book/trees/binary_trees/BST.py b/src/graphs_and_trees/trees/binary_trees/BST.py similarity index 100% rename from src/examples_book/trees/binary_trees/BST.py rename to src/graphs_and_trees/trees/binary_trees/BST.py diff --git a/src/examples_book/trees/binary_trees/BST_with_Nodes.py b/src/graphs_and_trees/trees/binary_trees/BST_with_Nodes.py similarity index 100% rename from src/examples_book/trees/binary_trees/BST_with_Nodes.py rename to src/graphs_and_trees/trees/binary_trees/BST_with_Nodes.py diff --git a/src/examples_book/trees/binary_trees/BT.py b/src/graphs_and_trees/trees/binary_trees/BT.py similarity index 100% rename from src/examples_book/trees/binary_trees/BT.py rename to src/graphs_and_trees/trees/binary_trees/BT.py diff --git a/src/examples_book/trees/binary_trees/BT_lists.py b/src/graphs_and_trees/trees/binary_trees/BT_lists.py similarity index 100% rename from src/examples_book/trees/binary_trees/BT_lists.py rename to src/graphs_and_trees/trees/binary_trees/BT_lists.py diff --git a/src/examples_book/general_problems/sets/__init__.py b/src/graphs_and_trees/trees/binary_trees/__init__.py similarity index 100% rename from src/examples_book/general_problems/sets/__init__.py rename to src/graphs_and_trees/trees/binary_trees/__init__.py diff --git a/src/examples_book/trees/binary_trees/avl.py b/src/graphs_and_trees/trees/binary_trees/avl.py similarity index 100% rename from src/examples_book/trees/binary_trees/avl.py rename to src/graphs_and_trees/trees/binary_trees/avl.py diff --git a/src/examples_book/trees/binary_trees/veritfy_if_BST.py b/src/graphs_and_trees/trees/binary_trees/veritfy_if_BST.py similarity index 100% rename from src/examples_book/trees/binary_trees/veritfy_if_BST.py rename to src/graphs_and_trees/trees/binary_trees/veritfy_if_BST.py diff --git a/src/examples_book/general_problems/strings/__init__.py b/src/graphs_and_trees/trees/simple_trees/__init__.py similarity index 100% rename from src/examples_book/general_problems/strings/__init__.py rename to src/graphs_and_trees/trees/simple_trees/__init__.py diff --git a/src/examples_book/trees/simple_trees/bunchclass.py b/src/graphs_and_trees/trees/simple_trees/bunchclass.py similarity index 100% rename from src/examples_book/trees/simple_trees/bunchclass.py rename to src/graphs_and_trees/trees/simple_trees/bunchclass.py diff --git a/src/examples_book/trees/simple_trees/tree.py b/src/graphs_and_trees/trees/simple_trees/tree.py similarity index 100% rename from src/examples_book/trees/simple_trees/tree.py rename to src/graphs_and_trees/trees/simple_trees/tree.py diff --git a/src/examples_book/trees/traversals/BST.py b/src/graphs_and_trees/trees/traversals/BST.py similarity index 100% rename from src/examples_book/trees/traversals/BST.py rename to src/graphs_and_trees/trees/traversals/BST.py diff --git a/src/examples_book/trees/traversals/BST_ancestor.py b/src/graphs_and_trees/trees/traversals/BST_ancestor.py similarity index 100% rename from src/examples_book/trees/traversals/BST_ancestor.py rename to src/graphs_and_trees/trees/traversals/BST_ancestor.py diff --git a/src/examples_book/trees/traversals/BST_traversal.py b/src/graphs_and_trees/trees/traversals/BST_traversal.py similarity index 100% rename from src/examples_book/trees/traversals/BST_traversal.py rename to src/graphs_and_trees/trees/traversals/BST_traversal.py diff --git a/src/examples_book/trees/traversals/BST_with_Nodes_traversal.py b/src/graphs_and_trees/trees/traversals/BST_with_Nodes_traversal.py similarity index 100% rename from src/examples_book/trees/traversals/BST_with_Nodes_traversal.py rename to src/graphs_and_trees/trees/traversals/BST_with_Nodes_traversal.py diff --git a/src/examples_book/trees/traversals/BST_with_extra_methods.py b/src/graphs_and_trees/trees/traversals/BST_with_extra_methods.py similarity index 100% rename from src/examples_book/trees/traversals/BST_with_extra_methods.py rename to src/graphs_and_trees/trees/traversals/BST_with_extra_methods.py diff --git a/src/examples_book/searching/__init__.py b/src/graphs_and_trees/trees/traversals/__init__.py similarity index 100% rename from src/examples_book/searching/__init__.py rename to src/graphs_and_trees/trees/traversals/__init__.py diff --git a/src/further_examples/trees_graphs/binary_search_tree.py b/src/graphs_and_trees/trees_graphs/binary_search_tree.py similarity index 100% rename from src/further_examples/trees_graphs/binary_search_tree.py rename to src/graphs_and_trees/trees_graphs/binary_search_tree.py diff --git a/src/further_examples/trees_graphs/binary_tree.py b/src/graphs_and_trees/trees_graphs/binary_tree.py similarity index 100% rename from src/further_examples/trees_graphs/binary_tree.py rename to src/graphs_and_trees/trees_graphs/binary_tree.py diff --git a/src/further_examples/trees_graphs/traversals.py b/src/graphs_and_trees/trees_graphs/traversals.py similarity index 100% rename from src/further_examples/trees_graphs/traversals.py rename to src/graphs_and_trees/trees_graphs/traversals.py diff --git a/src/examples_book/sorting/__init__.py b/src/programming_paradigms/dynamic_programming/__init__.py similarity index 100% rename from src/examples_book/sorting/__init__.py rename to src/programming_paradigms/dynamic_programming/__init__.py diff --git a/src/examples_book/dynamic_programming/memo.py b/src/programming_paradigms/dynamic_programming/memo.py similarity index 100% rename from src/examples_book/dynamic_programming/memo.py rename to src/programming_paradigms/dynamic_programming/memo.py diff --git a/src/examples_book/dynamic_programming/memoized_longest_inc_subseq.py b/src/programming_paradigms/dynamic_programming/memoized_longest_inc_subseq.py similarity index 100% rename from src/examples_book/dynamic_programming/memoized_longest_inc_subseq.py rename to src/programming_paradigms/dynamic_programming/memoized_longest_inc_subseq.py diff --git a/src/examples_book/trees/__init__.py b/src/programming_paradigms/modules/__init__.py similarity index 100% rename from src/examples_book/trees/__init__.py rename to src/programming_paradigms/modules/__init__.py diff --git a/src/examples_book/general_problems/modules/change_ext_file.py b/src/programming_paradigms/modules/change_ext_file.py similarity index 100% rename from src/examples_book/general_problems/modules/change_ext_file.py rename to src/programming_paradigms/modules/change_ext_file.py diff --git a/src/examples_book/general_problems/modules/export_pickle.py b/src/programming_paradigms/modules/export_pickle.py similarity index 100% rename from src/examples_book/general_problems/modules/export_pickle.py rename to src/programming_paradigms/modules/export_pickle.py diff --git a/src/examples_book/general_problems/modules/fib_generator.py b/src/programming_paradigms/modules/fib_generator.py similarity index 100% rename from src/examples_book/general_problems/modules/fib_generator.py rename to src/programming_paradigms/modules/fib_generator.py diff --git a/src/examples_book/general_problems/modules/grep_word_from_files.py b/src/programming_paradigms/modules/grep_word_from_files.py similarity index 100% rename from src/examples_book/general_problems/modules/grep_word_from_files.py rename to src/programming_paradigms/modules/grep_word_from_files.py diff --git a/src/examples_book/general_problems/modules/import_pickle.py b/src/programming_paradigms/modules/import_pickle.py similarity index 100% rename from src/examples_book/general_problems/modules/import_pickle.py rename to src/programming_paradigms/modules/import_pickle.py diff --git a/src/examples_book/general_problems/modules/passing_cmd_line_args.py b/src/programming_paradigms/modules/passing_cmd_line_args.py similarity index 100% rename from src/examples_book/general_problems/modules/passing_cmd_line_args.py rename to src/programming_paradigms/modules/passing_cmd_line_args.py diff --git a/src/examples_book/general_problems/modules/remove_blank_lines.py b/src/programming_paradigms/modules/remove_blank_lines.py similarity index 100% rename from src/examples_book/general_problems/modules/remove_blank_lines.py rename to src/programming_paradigms/modules/remove_blank_lines.py diff --git a/src/examples_book/general_problems/modules/using_time_module.py b/src/programming_paradigms/modules/using_time_module.py similarity index 100% rename from src/examples_book/general_problems/modules/using_time_module.py rename to src/programming_paradigms/modules/using_time_module.py diff --git a/src/examples_book/general_problems/oop/HashTable.py b/src/programming_paradigms/oop/HashTable.py similarity index 100% rename from src/examples_book/general_problems/oop/HashTable.py rename to src/programming_paradigms/oop/HashTable.py diff --git a/src/examples_book/general_problems/oop/ShapeClass.py b/src/programming_paradigms/oop/ShapeClass.py similarity index 100% rename from src/examples_book/general_problems/oop/ShapeClass.py rename to src/programming_paradigms/oop/ShapeClass.py diff --git a/src/examples_book/trees/binary_trees/__init__.py b/src/programming_paradigms/oop/__init__.py similarity index 100% rename from src/examples_book/trees/binary_trees/__init__.py rename to src/programming_paradigms/oop/__init__.py diff --git a/src/examples_book/general_problems/oop/do_benchmark.py b/src/programming_paradigms/oop/do_benchmark.py similarity index 100% rename from src/examples_book/general_problems/oop/do_benchmark.py rename to src/programming_paradigms/oop/do_benchmark.py diff --git a/src/examples_book/trees/simple_trees/__init__.py b/src/searching_and_sorting/searching/__init__.py similarity index 100% rename from src/examples_book/trees/simple_trees/__init__.py rename to src/searching_and_sorting/searching/__init__.py diff --git a/src/examples_book/searching/binary_search.py b/src/searching_and_sorting/searching/binary_search.py similarity index 100% rename from src/examples_book/searching/binary_search.py rename to src/searching_and_sorting/searching/binary_search.py diff --git a/src/examples_book/searching/find_max_unimodal_array.py b/src/searching_and_sorting/searching/find_max_unimodal_array.py similarity index 100% rename from src/examples_book/searching/find_max_unimodal_array.py rename to src/searching_and_sorting/searching/find_max_unimodal_array.py diff --git a/src/examples_book/searching/find_sqrt_bin_search.py b/src/searching_and_sorting/searching/find_sqrt_bin_search.py similarity index 100% rename from src/examples_book/searching/find_sqrt_bin_search.py rename to src/searching_and_sorting/searching/find_sqrt_bin_search.py diff --git a/src/examples_book/searching/find_time_occurence_list.py b/src/searching_and_sorting/searching/find_time_occurence_list.py similarity index 100% rename from src/examples_book/searching/find_time_occurence_list.py rename to src/searching_and_sorting/searching/find_time_occurence_list.py diff --git a/src/examples_book/searching/interserction_two_arrays.py b/src/searching_and_sorting/searching/interserction_two_arrays.py similarity index 100% rename from src/examples_book/searching/interserction_two_arrays.py rename to src/searching_and_sorting/searching/interserction_two_arrays.py diff --git a/src/examples_book/searching/ordered_sequential_search.py b/src/searching_and_sorting/searching/ordered_sequential_search.py similarity index 100% rename from src/examples_book/searching/ordered_sequential_search.py rename to src/searching_and_sorting/searching/ordered_sequential_search.py diff --git a/src/examples_book/searching/searching_in_a_matrix.py b/src/searching_and_sorting/searching/searching_in_a_matrix.py similarity index 100% rename from src/examples_book/searching/searching_in_a_matrix.py rename to src/searching_and_sorting/searching/searching_in_a_matrix.py diff --git a/src/examples_book/searching/sequential_search.py b/src/searching_and_sorting/searching/sequential_search.py similarity index 100% rename from src/examples_book/searching/sequential_search.py rename to src/searching_and_sorting/searching/sequential_search.py diff --git a/src/further_examples/searching/binary_search.py b/src/searching_and_sorting/searching_adv/binary_search.py similarity index 100% rename from src/further_examples/searching/binary_search.py rename to src/searching_and_sorting/searching_adv/binary_search.py diff --git a/src/further_examples/searching/binary_search_matrix.py b/src/searching_and_sorting/searching_adv/binary_search_matrix.py similarity index 100% rename from src/further_examples/searching/binary_search_matrix.py rename to src/searching_and_sorting/searching_adv/binary_search_matrix.py diff --git a/src/further_examples/searching/find_item_rotated_sorted_array.py b/src/searching_and_sorting/searching_adv/find_item_rotated_sorted_array.py similarity index 100% rename from src/further_examples/searching/find_item_rotated_sorted_array.py rename to src/searching_and_sorting/searching_adv/find_item_rotated_sorted_array.py diff --git a/src/further_examples/searching/find_str_array_with_empty_str.py b/src/searching_and_sorting/searching_adv/find_str_array_with_empty_str.py similarity index 100% rename from src/further_examples/searching/find_str_array_with_empty_str.py rename to src/searching_and_sorting/searching_adv/find_str_array_with_empty_str.py diff --git a/src/examples_book/trees/traversals/__init__.py b/src/searching_and_sorting/sorting/__init__.py similarity index 100% rename from src/examples_book/trees/traversals/__init__.py rename to src/searching_and_sorting/sorting/__init__.py diff --git a/src/examples_book/sorting/bubble_sort.py b/src/searching_and_sorting/sorting/bubble_sort.py similarity index 100% rename from src/examples_book/sorting/bubble_sort.py rename to src/searching_and_sorting/sorting/bubble_sort.py diff --git a/src/examples_book/sorting/count_sort.py b/src/searching_and_sorting/sorting/count_sort.py similarity index 100% rename from src/examples_book/sorting/count_sort.py rename to src/searching_and_sorting/sorting/count_sort.py diff --git a/src/examples_book/sorting/find_k_largest_seq_quickselect.py b/src/searching_and_sorting/sorting/find_k_largest_seq_quickselect.py similarity index 100% rename from src/examples_book/sorting/find_k_largest_seq_quickselect.py rename to src/searching_and_sorting/sorting/find_k_largest_seq_quickselect.py diff --git a/src/examples_book/sorting/gnome_sort.py b/src/searching_and_sorting/sorting/gnome_sort.py similarity index 100% rename from src/examples_book/sorting/gnome_sort.py rename to src/searching_and_sorting/sorting/gnome_sort.py diff --git a/src/examples_book/sorting/heap.py b/src/searching_and_sorting/sorting/heap.py similarity index 100% rename from src/examples_book/sorting/heap.py rename to src/searching_and_sorting/sorting/heap.py diff --git a/src/examples_book/sorting/heap_sort1.py b/src/searching_and_sorting/sorting/heap_sort1.py similarity index 100% rename from src/examples_book/sorting/heap_sort1.py rename to src/searching_and_sorting/sorting/heap_sort1.py diff --git a/src/examples_book/sorting/heap_sort2.py b/src/searching_and_sorting/sorting/heap_sort2.py similarity index 100% rename from src/examples_book/sorting/heap_sort2.py rename to src/searching_and_sorting/sorting/heap_sort2.py diff --git a/src/examples_book/sorting/heap_sort3.py b/src/searching_and_sorting/sorting/heap_sort3.py similarity index 100% rename from src/examples_book/sorting/heap_sort3.py rename to src/searching_and_sorting/sorting/heap_sort3.py diff --git a/src/examples_book/sorting/insertion_sort.py b/src/searching_and_sorting/sorting/insertion_sort.py similarity index 100% rename from src/examples_book/sorting/insertion_sort.py rename to src/searching_and_sorting/sorting/insertion_sort.py diff --git a/src/examples_book/sorting/merge_sort.py b/src/searching_and_sorting/sorting/merge_sort.py similarity index 100% rename from src/examples_book/sorting/merge_sort.py rename to src/searching_and_sorting/sorting/merge_sort.py diff --git a/src/examples_book/sorting/quick_sort.py b/src/searching_and_sorting/sorting/quick_sort.py similarity index 100% rename from src/examples_book/sorting/quick_sort.py rename to src/searching_and_sorting/sorting/quick_sort.py diff --git a/src/examples_book/sorting/selection_sort.py b/src/searching_and_sorting/sorting/selection_sort.py similarity index 100% rename from src/examples_book/sorting/selection_sort.py rename to src/searching_and_sorting/sorting/selection_sort.py diff --git a/src/further_examples/sorting/1.dat b/src/searching_and_sorting/sorting_adv/1.dat similarity index 100% rename from src/further_examples/sorting/1.dat rename to src/searching_and_sorting/sorting_adv/1.dat diff --git a/src/further_examples/sorting/2.dat b/src/searching_and_sorting/sorting_adv/2.dat similarity index 100% rename from src/further_examples/sorting/2.dat rename to src/searching_and_sorting/sorting_adv/2.dat diff --git a/src/further_examples/sorting/3.dat b/src/searching_and_sorting/sorting_adv/3.dat similarity index 100% rename from src/further_examples/sorting/3.dat rename to src/searching_and_sorting/sorting_adv/3.dat diff --git a/src/further_examples/sorting/merge_sort.py b/src/searching_and_sorting/sorting_adv/merge_sort.py similarity index 100% rename from src/further_examples/sorting/merge_sort.py rename to src/searching_and_sorting/sorting_adv/merge_sort.py diff --git a/src/further_examples/sorting/merge_sorted_things.py b/src/searching_and_sorting/sorting_adv/merge_sorted_things.py similarity index 100% rename from src/further_examples/sorting/merge_sorted_things.py rename to src/searching_and_sorting/sorting_adv/merge_sorted_things.py diff --git a/src/further_examples/sorting/quick_sort.py b/src/searching_and_sorting/sorting_adv/quick_sort.py similarity index 100% rename from src/further_examples/sorting/quick_sort.py rename to src/searching_and_sorting/sorting_adv/quick_sort.py diff --git a/src/further_examples/sorting/sort_anagrams_together.py b/src/searching_and_sorting/sorting_adv/sort_anagrams_together.py similarity index 100% rename from src/further_examples/sorting/sort_anagrams_together.py rename to src/searching_and_sorting/sorting_adv/sort_anagrams_together.py