Minor bug in problem statement (START214)(P2HOME,Crazy Permutations)

Feedback: Notation Confusion in Problem Statement

The problem statement uses the same variable name i for two different purposes:

  1. The index chosen for performing an operation:

    Choose an index i (1 ≤ i ≤ N)
    
  2. The dummy variable used in the adjacency constraint:

    A[i] ≠ A[i+1] for all 1 ≤ i < N
    

This can mislead readers into thinking the adjacency rule depends on the same i chosen for the operation, which is not the case. The second i is only a dummy loop variable.

To avoid confusion, the statement should use distinct variable names, for example:

  • Use k for the chosen index:

    Choose an index k (1 ≤ k ≤ N)
    
  • Use j for the adjacency rule:

    A[j] ≠ A[j+1] for all 1 ≤ j < N
    

This small change improves readability and prevents misinterpretation.

Hey @aryank_15, Thanks for your feedback.

I have fixed this issue.