While going though binary search algorithm. I encounter two type of templates
First
while(low<=high){}
Second
while(low<high){}
When do you guys decide what template to use. Thank You