Should constraints hold true for the problem throughout?

Can the values of given variables go out of range from the given constraints?

Example :
let say the given constraints are :

1 ≤ a[i] ≤ N for each valid i (N and a[i] are taken as input)

Here can a[i] exceed N in runtime? (for any value of i)

can a[i] exceed N in runtime

No

2 Likes

Thank you very much for the prompt reply. :slight_smile: