Python/searches
poloso 21581eae3b
Fix: Multiple errors in fibonacci search. (#2659)
* Fix: Multiple errors in fibonacci search.

- Test lists were not ordered, this is required for Fibonacci search
- Place documentation of function inside function
- Create multiple different tests including, float, char and negatives
- Add type hints in line with #2128

* Fix: sort of modules and delete typehint.

* Apply suggestions from code review

Co-authored-by: Dhruv <dhruvmanila@gmail.com>

* Correct invocation of lru_cache.

* Add check for input in fibonacci and doctest.

* Correct typehints to comply to numpy style.

* Correct ValueError to TypeError.

Co-authored-by: Dhruv <dhruvmanila@gmail.com>

* Correct doctest for TypeError.

* Rename  single letter names as mentioned in CONTRIBUTING.md.

* Fix: Bug in big lists.

* Remove print(.) in doctests.

* Refactor iterator to while loop.

* Update searches/fibonacci_search.py

Co-authored-by: Dhruv <dhruvmanila@gmail.com>
2020-10-08 09:06:19 +05:30
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
binary_search.py fix doctests for recursive binary search (#2229) 2020-08-01 07:26:04 +02:00
double_linear_search_recursion.py Added double linear search recursion (#2445) 2020-09-18 09:55:02 +02:00
double_linear_search.py from __future__ import annotations (#2464) 2020-09-23 13:30:13 +02:00
fibonacci_search.py Fix: Multiple errors in fibonacci search. (#2659) 2020-10-08 09:06:19 +05:30
hill_climbing.py isort --profile black . (#2181) 2020-07-06 09:44:19 +02:00
interpolation_search.py contribution guidelines checks (#1787) 2020-03-04 13:40:28 +01:00
jump_search.py Jump search (#2415) 2020-09-12 07:50:12 +02:00
linear_search.py Update linear_search.py (#2422) 2020-09-14 12:44:46 +02:00
quick_select.py Update quick_select.py (#1523) 2019-10-30 16:10:30 +01:00
sentinel_linear_search.py contribution guidelines checks (#1787) 2020-03-04 13:40:28 +01:00
simple_binary_search.py Fix: Corrected test. List in test must be ordered. (#2632) 2020-10-07 19:57:19 +05:30
simulated_annealing.py Fix imports for all namespace packages (#2506) 2020-09-28 23:41:04 +02:00
tabu_search.py isort --profile black . (#2181) 2020-07-06 09:44:19 +02:00
tabu_test_data.txt .txt instead of .py 2018-10-19 17:38:11 -05:00
ternary_search.py Add type hints for searches/ternary_search.py (#2874) 2020-10-05 23:14:35 +05:30