These are useful in coding competitions to optimise the space complexity and even time complexity sometimes.