The eThekwini Municipality has allocated R40 million to fix 22 pipelines that experienced frequent bursts. Municipal councillors were informed at a council meeting on Tuesday about the allocation of ...
The problem is solved with time complexity of O(n). First the loop will run from 0 to n -1 and then checking the condition for primary and secondary diagonal.