Adding a section for the twin pointer method under the search algorithms section. The code section features two different exported functions (one for sorted, one for unsorted) instead of one single default export which I'm not sure is allowed but I figured I would try to include both since the usage of the algorithm differs slightly in the two cases. Both functions are tested via jest.
Adding a section for the twin pointer method under the search algorithms section. The code section features two different exported functions (one for sorted, one for unsorted) instead of one single default export which I'm not sure is allowed but I figured I would try to include both since the usage of the algorithm differs slightly in the two cases. Both functions are tested via jest.