Using 2 pointers This method does not need to use any containers, and does not need to create the array space. It is recommended, but the position information between the array elements is lost.
Theory Garbage Collection is a memory management technique in some programming languages so that developers don’t need to worry about memory deallocation after creating new objects, because garbage collector will destroy those objects automatically.
Interview Question what is loose coupling Loose coupling occurs when the dependent class contains a pointer only to an interface, which can then be implemented by one or many concrete classes.
Insights of Binary Search The size of search spaces ([l, m] or [m, l]) is reduced roughly by a half of the previous iteration, and will eventually reduced to 2 elements and then 1 element at last.