Try this exercise. Could you figure out the right sequence for this list?
Order the following steps according to the general steps required for solving a problem using two-pointer technique.
Press the below buttons in the order in which they should occur. Click on them again to un-select.
Options:
- Initialize two pointers
- Reduce the problem to a search problem
- Update pointers
- Evaluate the elements pointed by pointers