Yes but this will consume O(n) time at the start of the algorithm as a
pre-calculations

Reply via email to